Difference between revisions of "XML"
(accidently inserted math page) |
(format introduction (to be expanded later)) |
||
(42 intermediate revisions by 20 users not shown) | |||
Line 1: | Line 1: | ||
− | + | __TOC__ | |
− | + | =Introduction= | |
− | + | Handling XML in ConTeXt has improved dramatically with the advent of MkIV. | |
− | * [ | + | |
− | * [ | + | The new Lua–based infrastructure makes typesetting, manipulating, filtering, and reusing XML much much easier than before. |
− | * [http:// | + | |
− | * [ | + | Unfortunately, this means that most of the existing documentation is now obsolete. |
− | * [ | + | |
− | * [ | + | In general, old MkII code includes the uppercase <tt>XML</tt> string in its commands (as in {{cmd|getXMLcode|[name])}}, while new MkIV code uses lowercase <tt>xml</tt> (as in {{cmd|xmlflush|{#1}}}). |
− | * [ | + | |
− | * [ | + | =Documents about XML in MkIV= |
− | * [ | + | |
+ | ==General Information== | ||
+ | |||
+ | * [[manual:xml-mkiv.pdf|''Dealing with XML in ConTEXt MkIV'']]: the official manual that explains everything. Too hard to be a good starting point (unless you are confident [or at least familiar] with XPath). | ||
+ | * [[manual:math-mkiv.pdf|''MathML in MkIV'']]: also official document to math typesetting with XML sources. | ||
+ | * [[TEI_xml| TEI XMLl]]: example of TEI–encoded source typeset with ConTeXt. | ||
+ | * [[DocBook]]: example of how to typeset DocBook sources with help of a ConTeXt module. | ||
+ | * [[Formatting Objects|Formatting XML Objects]]: not (yet?) available for MkIV. | ||
+ | * [[Verbatim_XML | Verbatim in XML]]: how to typeset XML sources verbatim in final text. | ||
+ | * [[xtables#XML | Processing XML tables as Extreme Tables]]: example about XML tables as ConTeXt tables (extreme or natural). | ||
+ | * [https://wiki.contextgarden.net/images/8/8c/xhtml.pdf XHTML in MkIV]: ''Getting Web Content and pdf-Output from One Source'', by Thomas Schmitz. | ||
+ | * [[Ctx| Processing of Ctx XML files]] | ||
+ | |||
+ | ==Processing XML with lua== | ||
+ | * [[XML_Lua| XML in Lua]] (manipulating XML in Lua) | ||
+ | |||
+ | ==XHTML in MKIV== | ||
+ | * [https://wiki.contextgarden.net/images/8/8c/xhtml.pdf Thomas’ ''My Way'' on processing XHTML with MKIV]: ''Getting Web Content and pdf-Output from One Source'' (already mentioned). | ||
+ | |||
+ | |||
+ | =Documents about XML in MkII (obsolete)= | ||
+ | |||
+ | ==XML/ConTeXt in general== | ||
+ | * [[manual:example.pdf|XML in ConTeXt]] by Pragma (2001) | ||
+ | * [https://tug.org/TUGboat/tb24-3/pepping.pdf XML DocBook in ConTeXt] by Simon Pepping | ||
+ | * [http://getfo.sourceforge.net/context_xml/index.html XML ConTeXt] by Paul Tremblay | ||
+ | * [https://www.pragma-ade.nl/general/magazines/mag-0008.pdf ''Dealing with XML''] by Hans Hagen (about XML, XSLT and typesetting without TeX code) | ||
+ | * XML Basics: [[Mixing_XML_and_ConTeXt|Mixing XML and ConTeXt]] using the pre-defined ContML vocabulary | ||
+ | |||
+ | ==Additions and Details of XML/ConTeXt== | ||
+ | * [[manual:xfigures-p.pdf|Figures (XML image databases)]] ([[manual:xfigures-s.pdf|screen]]) by Pragma (2001); see [[Image Database]] | ||
+ | * [[Two pass tag processing example]] (float and figure tags) | ||
+ | * [[manual:xsteps-p.pdf|Steps (XML step charts)]] ([[manual:xsteps-s.pdf|screen]]) by Pragma (2001) | ||
+ | * [[manual:xxmldir.pdf|XML DIR (directory and file access)]] by Pragma | ||
+ | * [[Interface.rnc]], the Relax NG schema of texshow-web | ||
+ | * [[manual:xmanipulate.pdf|Preprocessing Source Files / Manipulating Graphic Resources]] by Pragma | ||
+ | ** a simple [[ctx|.ctx example]] of processing xml files | ||
+ | * [[manual:xcorresp.pdf|Serial Letters]] (using a XML database) by Pragma (2003) | ||
+ | |||
+ | ==eXaMpLe framework== | ||
+ | (batch processing) | ||
+ | * [[manual:ex-ample.pdf|Example Interface]] (empty) | ||
+ | * [[manual:ex-gui.pdf|Example GUI]] | ||
+ | * [[manual:ex-imple.pdf|Eximple Toolkit]] (simple subset of Example) | ||
+ | |||
+ | ==MathML== | ||
+ | * [[manual:pre-mml.pdf|MathML Intro presentation]] by Pragma | ||
+ | * [[manual:mmlprime.pdf|MathML manual]] by Pragma (2001) | ||
+ | * [[manual:mmlexamp.pdf|MathML in ConTeXt]] by Pragma (2001) | ||
+ | * [[manual:xmathml-p.pdf|MathML support]] ([[manual:xmathml-s.pdf|screen]]) by Pragma (2001) | ||
+ | * [[manual:xchemml-p.pdf|ChemML (MathML extension for chemistry)]] ([[manual:xchemml-s.pdf|screen]]) by Pragma | ||
+ | * [[manual:xphysml-p.pdf|PhysML (MathML extension for physics)]] ([[manual:xphysml-s.pdf|screen]]) by Pragma | ||
+ | |||
+ | ==XSL/FO== | ||
+ | * XSL/FO: [[Formatting Objects]] | ||
+ | * [[ConTeXt FO and XML]] is a tutorial with a view to presenting ConTeXt from the XSL-FO mindset. | ||
+ | |||
+ | [[Category:XML]] |
Latest revision as of 09:34, 8 June 2024
Introduction
Handling XML in ConTeXt has improved dramatically with the advent of MkIV.
The new Lua–based infrastructure makes typesetting, manipulating, filtering, and reusing XML much much easier than before.
Unfortunately, this means that most of the existing documentation is now obsolete.
In general, old MkII code includes the uppercase XML string in its commands (as in \getXMLcode[name]), while new MkIV code uses lowercase xml (as in \xmlflush{#1}).
Documents about XML in MkIV
General Information
- Dealing with XML in ConTEXt MkIV: the official manual that explains everything. Too hard to be a good starting point (unless you are confident [or at least familiar] with XPath).
- MathML in MkIV: also official document to math typesetting with XML sources.
- TEI XMLl: example of TEI–encoded source typeset with ConTeXt.
- DocBook: example of how to typeset DocBook sources with help of a ConTeXt module.
- Formatting XML Objects: not (yet?) available for MkIV.
- Verbatim in XML: how to typeset XML sources verbatim in final text.
- Processing XML tables as Extreme Tables: example about XML tables as ConTeXt tables (extreme or natural).
- XHTML in MkIV: Getting Web Content and pdf-Output from One Source, by Thomas Schmitz.
- Processing of Ctx XML files
Processing XML with lua
- XML in Lua (manipulating XML in Lua)
XHTML in MKIV
- Thomas’ My Way on processing XHTML with MKIV: Getting Web Content and pdf-Output from One Source (already mentioned).
Documents about XML in MkII (obsolete)
XML/ConTeXt in general
- XML in ConTeXt by Pragma (2001)
- XML DocBook in ConTeXt by Simon Pepping
- XML ConTeXt by Paul Tremblay
- Dealing with XML by Hans Hagen (about XML, XSLT and typesetting without TeX code)
- XML Basics: Mixing XML and ConTeXt using the pre-defined ContML vocabulary
Additions and Details of XML/ConTeXt
- Figures (XML image databases) (screen) by Pragma (2001); see Image Database
- Two pass tag processing example (float and figure tags)
- Steps (XML step charts) (screen) by Pragma (2001)
- XML DIR (directory and file access) by Pragma
- Interface.rnc, the Relax NG schema of texshow-web
- Preprocessing Source Files / Manipulating Graphic Resources by Pragma
- a simple .ctx example of processing xml files
- Serial Letters (using a XML database) by Pragma (2003)
eXaMpLe framework
(batch processing)
- Example Interface (empty)
- Example GUI
- Eximple Toolkit (simple subset of Example)
MathML
- MathML Intro presentation by Pragma
- MathML manual by Pragma (2001)
- MathML in ConTeXt by Pragma (2001)
- MathML support (screen) by Pragma (2001)
- ChemML (MathML extension for chemistry) (screen) by Pragma
- PhysML (MathML extension for physics) (screen) by Pragma
XSL/FO
- XSL/FO: Formatting Objects
- ConTeXt FO and XML is a tutorial with a view to presenting ConTeXt from the XSL-FO mindset.