author | František Kučera <franta-hg@frantovo.cz> |
Sat, 06 Jun 2020 13:22:57 +0200 | |
branch | v_0 |
changeset 300 | b9bd0f06b4a1 |
parent 244 | d4f401b5f90c |
permissions | -rw-r--r-- |
23
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
1 |
<stránka |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
2 |
xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
3 |
xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
0d2729ed16ed
zkouška interního odkazu
František Kučera <franta-hg@frantovo.cz>
parents:
18
diff
changeset
|
4 |
|
244
d4f401b5f90c
examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents:
241
diff
changeset
|
5 |
<nadpis>Generating XML</nadpis> |
d4f401b5f90c
examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents:
241
diff
changeset
|
6 |
<perex>converting relational data to XML</perex> |
d4f401b5f90c
examples: move each example to a separate page + add generated list of examples
František Kučera <franta-hg@frantovo.cz>
parents:
241
diff
changeset
|
7 |
<m:pořadí-příkladu>00400</m:pořadí-příkladu> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
8 |
|
2
ab9099ff88fa
vkládání zápatí, jmenné prostory, saxon
František Kučera <franta-hg@frantovo.cz>
parents:
1
diff
changeset
|
9 |
<text xmlns="http://www.w3.org/1999/xhtml"> |
176
46042297e0d6
relpipe-tr-validator: specification and examples
František Kučera <franta-hg@frantovo.cz>
parents:
140
diff
changeset
|
10 |
|
187
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
11 |
<p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
12 |
Relational data can be converted to various formats and one of them is the XML. |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
13 |
This is a good option for further processing e.g. using XSLT transformation or passing the XML data to some other tool. |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
14 |
Just use <code>relpipe-out-xml</code> instead of <code>relpipe-out-tabular</code> and the rest of the pipeline remains unchanged: |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
15 |
</p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
16 |
|
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
17 |
<m:pre jazyk="bash"><![CDATA[ssh example.com cat /etc/mtab | relpipe-in-fstab | relpipe-out-xml]]></m:pre> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
18 |
|
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
19 |
<p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
20 |
Will produce XML like this: |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
21 |
</p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
22 |
|
234
2fc56dd7f003
examples: update XML example (namespace, metadata) and move it to a separate file
František Kučera <franta-hg@frantovo.cz>
parents:
233
diff
changeset
|
23 |
<m:pre jazyk="xml" src="examples/relpipe-out-fstab.xml"/> |
187
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
24 |
|
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
25 |
<p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
26 |
Thanks to XSLT, this XML can be easily converted e.g. to an XHTML table (<code>table|tr|td</code>) or other format. |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
27 |
Someone can convert such data to a (La)TeX table. |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
28 |
</p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
29 |
|
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
30 |
<p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
31 |
n.b. the format is not final and will change i future versions (XML namespace, more metadata etc.). |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
32 |
</p> |
c952261978e8
examples: relpipe-out-xml
František Kučera <franta-hg@frantovo.cz>
parents:
186
diff
changeset
|
33 |
|
87
25dec6931f18
Lepší odsazení, tabulátory.
František Kučera <franta-hg@frantovo.cz>
parents:
23
diff
changeset
|
34 |
</text> |
4
1bb39595a51c
genrování hlavní nabídky #1
František Kučera <franta-hg@frantovo.cz>
parents:
2
diff
changeset
|
35 |
|
1 | 36 |
</stránka> |