ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* get XML data and put it in a table
@ 2007-01-23  0:31 Claudia Lanzl
  0 siblings, 0 replies; only message in thread
From: Claudia Lanzl @ 2007-01-23  0:31 UTC (permalink / raw)


Hello again,

yet another problem....  :(

I have got the following table:
   
        \bTABLE
            \bTR \bTD {\ss Name }             \eTD \bTD    FAMILY NAME 
          \eTD \eTR
            \bTR \bTD {\ss Role}                \eTD \bTD    ROLE       
                    \eTD \eTR
            \bTR \bTD {\ss E-Mail}             \eTD \bTD    E-MAIL    
                    \eTD \eTR
        \eTABLE

and want the first coloumn to be always the same.
The 3 attributes of the second one (FAMILY NAME, ROLE, E-MAIL) should 
come from an XML-file.

So how do I get the attributs out of the file to the special position in 
the table?
I think this can not be difficult, but it didn´t want to work. Do I have 
to go step by step through my document, and ignore those tags I don´t 
want to get? I would like to say:

\defineXMLenvironment[user]
\defineXMLenvironment[name]
    \defineXMLignore[display]
    \defineXMLargument[family] and save this result in a variable.

Hm, I simly don´t know... do I have to group it?

The XML-file looks s.th. similar to that:
<user status="published" type="author" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <name>
        <display>
            Reiner Ittinger
        </display>
        <family>
            Ittinger
        </family>
        <given>
            Reiner
        </given>
    </name>
    <organisation>
        <role>
            Student
        </role>
    </organisation>
    <contact>
        <emails>
            <email>
                ittinger@fha.de
            </email>
        </emails>
    </contact>
</user>

Thank you for your help and comments,
tired Claudia

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-23  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23  0:31 get XML data and put it in a table Claudia Lanzl

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).