[NTG-context] xml question

Hans Hagen pragma at wxs.nl
Fri Jun 6 11:56:12 CEST 2008


Wolfgang Schuster wrote:
> On Fri, Jun 6, 2008 at 11:03 AM, Hans Hagen <pragma at wxs.nl> wrote:
>> Wolfgang Schuster wrote:
>>
>>> \startxmlsetups setup
>>>   \xmlsetsetup{\xmldocument}{chapter/title}{chapter:title}
>>> \stopxmlsetups
>>>
>>> \startxmlsetups chapter:title
>>>      \chapter{\xmlflush{#1}}
>>> \stopxmlsetups
> 
> Just one more thing, how can I get the the id attribute from the chapter
> element as reference entry for \chapter.




\startxmlsetups chapter:title
       \expanded{\chapter[\xmlatt{#1}{id}]{\xmlflush{#1}}}
\stopxmlsetups


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list