s-xml-analyzers.mkiv /size: 1249 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [      file=s-xml-analyzers,
3%D        version=2013.05.28,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Analyze XML Content,
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\startmodule[xml-analyzers]
15
16\registerctxluafile{s-xml-analyzers}{}
17
18\installmodulecommandluasingle \showxmlstructure  {moduledata.xml.analyzers.structure}
19\installmodulecommandluasingle \showxmlcharacters {moduledata.xml.analyzers.characters}
20\installmodulecommandluasingle \showxmlentities   {moduledata.xml.analyzers.entities}
21\installmodulecommandluasingle \showxmlallsetups  {moduledata.xml.analyzers.allsetups}
22
23\stopmodule
24
25\continueifinputfile{s-xml-analyzers.mkiv}
26
27\usemodule[art-01]
28
29\setupbodyfont[tt,10pt]
30
31\edef\FileName{\cldcontext{resolvers.findfile("music-collection.xml")}}
32
33\setupheadertexts[\FileName\space\emdash\space\pagenumber]
34
35\starttext
36
37    \showxmlstructure [\FileName] \page
38    \showxmlentities  [\FileName] \page
39    \showxmlcharacters[\FileName] \page
40    \showxmlallsetups [\FileName] \page
41
42\stoptext
43