ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML ConTeXt
@ 2010-11-02 19:50 Daniel Grycman
  2010-11-02 20:22 ` Jano Kula
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Grycman @ 2010-11-02 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello list,

I'm working with XML in ConTeXt. Now I want parse a XML-File with the
following structure, which is an export from a database.

<?xml version="1.0" encoding="UTF-8"?>
<personal>
    <person>
        <Name></Name>
        <Vorname></Vorname>
        <Titel></Titel>
        <Bezeichnung></Bezeichnung>
        <Mail></Mail>
        <Raum></Raum>
        <Telefon></Telefon>
    </person>


I'm using this ConTeXt script.

\setuppapersize [A4,landscape][A4,landscape]
\usemodule [simplefonts]
\setmainfont[rubscalatz]
\setsansfont[rubflama]
\startxmlsetups xml:personen:base % associate setups with elements
\xmlsetsetup{personen}{personal|person}{xml:personen:*}
\stopxmlsetups
\xmlregisterdocumentsetup{personen}{xml:personen:base}

\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
\xmlflush{#1} 
\stopxmlsetups

\startxmlsetups xml:personen:personal:person % associate setups with
elements
\bTABLE
\bTR \bTD {/Name} \eTD \eTR
\eTABLE
\stopxmlsetups

\starttext
\xmlprocessfile{personen}{personen.xml}{}
\stoptext


The generated PDF-file only consists of one page with the chapter
"Personalverzeichnis". Can anybody tell me, where the mistake is?

Daniel


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-03  0:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-02 19:50 XML ConTeXt Daniel Grycman
2010-11-02 20:22 ` Jano Kula
2010-11-02 21:17   ` Daniel Grycman
2010-11-02 21:38     ` Wolfgang Schuster
2010-11-02 21:59       ` Daniel Grycman
2010-11-02 22:07         ` Aditya Mahajan
2010-11-03  0:09         ` Jano Kula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).