Changes

Jump to navigation Jump to search
1,005 bytes added ,  14:28, 24 May 2013
2
''For the list of XML manuals, see [[XML manuals]].''

This page is about processing XML with ConTeXt MkIV. Its information comes from the [[http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf Dealing with XML in ConTeXt MkIV]], but the presentation is different: this explanation takes the architecture as a starting point, rather than the commands.

== The general architecture ==

The pivotal element of the MkIV XML architecture is the {{code|namespace}}, or {{code|id}}: node processing instructions are associated with XML input by linking both to the same ID.

Setups are processing instructions. When a setup is invoked, it gets passed a single argument: a pointer to a node in the XML tree. {{code|xml...}} commands inside the setup access the node's various contents —

they get past a single argument, a pointer to an node {{cmd|xmlsetsetup|{ID}|{node}|{setup}|}} links an XML node to a setup, and stores this association in the namespace {{code|ID}}.

== Importing the XML ==

* {{cmd|}}

Navigation menu