Johannes Graumann wrote: > Hello, > > I'm writing a XML style sheet for ConTeXt, which contains the following > definitions: > \defineXMLargument [chapter] {\chapter{\XMLvar{chapter}{title}{}}} > \defineXMLargument [tableofcontents] {\completecontent} > > When reading a file like > <document> > <frontmatter> > <titlepage> > ... > </titlepage> > <dedication> > ... > </dedication> > <aknowledgements> > ... > </aknowledgements> > <abstract> > ... > </abstract> > <tableofcontents/> > </frontmatter> > <bodymatter> > <chapter> > <title> > Title > </title> > <p>Text.</p> > </chapter> > </bodymatter> > <appendices> > ... > </appendices> > </document> > > I get the 'Contents' title of the table of contents, but the Chapter does > not show up ... any hints? > see taco's mail for the attribute solution, here is the element one:
\defineXMLenvironment [chapter] {\defineXMLargument[title]{\chapter} \defineXMLprocess[content]} {} \defineXMLargument [tableofcontents] {\completecontent} <chapter> <title> Title </title> <content> <p>Text.</p> </content> </chapter> ----------------------------------------------------------------- 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 ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context