summaryrefslogtreecommitdiff
path: root/doc/context/presentations/context/2012/context-2012-xml-news.tex
blob: c11c35d3184c1206d1c9aabee97e57448e719df6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
\usemodule[present-stepwise,present-bars,abr-01]

\startdocument
  [title={Processing XML, some basics},
   color=darkcyan]

\StartSteps

\startsubject[title=Topics]

    \startitemize[packed]

        \startitem processing  \stopitem \FlushStep
        \startitem selecting   \stopitem \FlushStep
        \startitem flushing    \stopitem \FlushStep
        \startitem testing     \stopitem \FlushStep
        \startitem basics only \stopitem \FlushStep

    \stopitemize

\stopsubject

\StopSteps \page \StartSteps

\startsubject[title=Processing]

    \starttyping
    \xmlprocessfile   {name} {filename} {setup}
    \xmlprocessbuffer {name} {filename} {setup}
    \xmlloadonly      {name} {filename} {setup}
    \stoptyping \FlushStep

\stopsubject

\startsubject[title=Loading]

    \starttyping
    \xmlload       {name} {filename}   {setup}
    \xmlloadbuffer {name} {buffername} {setup}
    \stoptyping \FlushStep

\stopsubject

\StopSteps \page \StartSteps

\startsubject[title=Injecting elements]

    \starttyping
    \xmlall   {node} {pattern}
    \xmlfirst {node} {pattern}
    \xmllast  {node} {pattern}
    \xmlflush {node}
    \stoptyping \FlushStep

    \starttyping
    \xmlraw     {node} {pattern}
    \xmlcontext {node} {pattern}
    \xmlstrip   {node} {pattern}
    \xmltag     {node}
    \xmltext    {node} {pattern}
    \stoptyping \FlushStep

\stopsubject

\StopSteps \page \StartSteps

\startsubject[title=Injecting attributes]

    \starttyping
    \xmlatt          {node} {name}
    \xmlattdef       {node} {namev {default}
    \xmlattribute    {node} {pattern} {name}
    \xmlattributedef {node} {pattern} {name} {default}
    \stoptyping \FlushStep

\stopsubject

\startsubject[title=Injecting properties]

    \starttyping
    \xmlcount     {node} {pattern}
    \xmlname      {node}
    \xmlnamespace {node}
    \stoptyping \FlushStep

\stopsubject

\StopSteps \page \StartSteps

\startsubject[title=Filters]

    \starttyping
    \xmlcommand {node} {pattern} {setup
    \xmlfilter  {node} {pattern}
    \stoptyping \FlushStep

\stopsubject

\startsubject[title=Much more]

    \starttyping
    \xmlverbatim        {node}
    \xmldisplayverbatim {node}
    \xmlinlineverbatim  {node}
    \stoptyping \FlushStep

    \starttyping
    \xmlinclude {node} {pattern} {attribute}
    \xmlshow    {node}
    \stoptyping \FlushStep

\stopsubject

\StopSteps \page \StartSteps

\startsubject[title=Testing]

    \starttyping
    \xmldoif         {node} {pattern} {true}
    \xmldoifnot      {node} {pattern} {true}
    \xmldoifelse     {node} {pattern} {true} {false}
    \xmldoiftext     {node} {pattern} {true}
    \xmldoifnottext  {node} {pattern} {true}
    \xmldoifelsetext {node} {pattern} {true} {false}
    \stoptyping \FlushStep

\stopsubject

\StopSteps

\stopdocument