1%D \module 2%D [ file=x-cals, 3%D version=2007.09.05, 4%D title=\CONTEXT\ XML Modules, 5%D subtitle=Cals table renderer, 6%D author=Hans Hagen, 7%D date=\currentdate, 8%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9%C 10%C This module is part of the \CONTEXT\ macro||package and is 11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12%C details. 13 14\writestatus{loading}{ConTeXt XML Macros / Cals Tables} 15 16\startmodule [cals] 17 18\registerctxluafile{x-cals}{} 19 20% \startxmlsetups xml:cals:process 21% \xmlsetsetup {#1} {cals:table} {*} 22% \stopxmlsetups 23% \startxmlsetups cals:table 24% \ctxlua{moduledata.cals.table("#1")} 25% \stopxmlsetups 26% \xmlregistersetup{xml:cals:process} 27 28 xml:cals:process 29% \xmlsetfunction {\xmldocument} {cals:table} {moduledata.cals.table} 30 {#1} {cals:table} {moduledata.cals.table} 31 32 33 xml:cals:nonamespace 34% \xmlsetfunction {\xmldocument} {table} {moduledata.cals.table} 35 {#1} {table} {moduledata.cals.table} 36 37 38{xml:cals:process} 39 40{cals}{cals} 41 42%D One can register the nonamespace variant for cases where the cals 43%D model is embedded in the parent DTD. 44 45\stopmodule 46 |