1\usemodule[presentstepwise,presentbars,abr01]
2
3\startdocument
4 [title={Processing XML, some basics},
5 color=darkcyan]
6
7\StartSteps
8
9\startsubject[title=Topics]
10
11 \startitemize[packed]
12
13 \startitem processing \stopitem \FlushStep
14 \startitem selecting \stopitem \FlushStep
15 \startitem flushing \stopitem \FlushStep
16 \startitem testing \stopitem \FlushStep
17 \startitem basics only \stopitem \FlushStep
18
19 \stopitemize
20
21\stopsubject
22
23\StopSteps \page \StartSteps
24
25\startsubject[title=Processing]
26
27 \starttyping
28 \xmlprocessfile {name} {filename} {setup}
29 \xmlprocessbuffer {name} {filename} {setup}
30 \xmlloadonly {name} {filename} {setup}
31 \stoptyping \FlushStep
32
33\stopsubject
34
35\startsubject[title=Loading]
36
37 \starttyping
38 \xmlload {name} {filename} {setup}
39 \xmlloadbuffer {name} {buffername} {setup}
40 \stoptyping \FlushStep
41
42\stopsubject
43
44\StopSteps \page \StartSteps
45
46\startsubject[title=Injecting elements]
47
48 \starttyping
49 \xmlall {node} {pattern}
50 \xmlfirst {node} {pattern}
51 \xmllast {node} {pattern}
52 \xmlflush {node}
53 \stoptyping \FlushStep
54
55 \starttyping
56 \xmlraw {node} {pattern}
57 \xmlcontext {node} {pattern}
58 \xmlstrip {node} {pattern}
59 \xmltag {node}
60 \xmltext {node} {pattern}
61 \stoptyping \FlushStep
62
63\stopsubject
64
65\StopSteps \page \StartSteps
66
67\startsubject[title=Injecting attributes]
68
69 \starttyping
70 \xmlatt {node} {name}
71 \xmlattdef {node} {namev {default}
72 \xmlattribute {node} {pattern} {name}
73 \xmlattributedef {node} {pattern} {name} {default}
74 \stoptyping \FlushStep
75
76\stopsubject
77
78\startsubject[title=Injecting properties]
79
80 \starttyping
81 \xmlcount {node} {pattern}
82 \xmlname {node}
83 \xmlnamespace {node}
84 \stoptyping \FlushStep
85
86\stopsubject
87
88\StopSteps \page \StartSteps
89
90\startsubject[title=Filters]
91
92 \starttyping
93 \xmlcommand {node} {pattern} {setup
94 \xmlfilter {node} {pattern}
95 \stoptyping \FlushStep
96
97\stopsubject
98
99\startsubject[title=Much more]
100
101 \starttyping
102 \xmlverbatim {node}
103 \xmldisplayverbatim {node}
104 \xmlinlineverbatim {node}
105 \stoptyping \FlushStep
106
107 \starttyping
108 \xmlinclude {node} {pattern} {attribute}
109 \xmlshow {node}
110 \stoptyping \FlushStep
111
112\stopsubject
113
114\StopSteps \page \StartSteps
115
116\startsubject[title=Testing]
117
118 \starttyping
119 \xmldoif {node} {pattern} {true}
120 \xmldoifnot {node} {pattern} {true}
121 \xmldoifelse {node} {pattern} {true} {false}
122 \xmldoiftext {node} {pattern} {true}
123 \xmldoifnottext {node} {pattern} {true}
124 \xmldoifelsetext {node} {pattern} {true} {false}
125 \stoptyping \FlushStep
126
127\stopsubject
128
129\StopSteps
130
131\stopdocument
132 |