relpipe-data/examples-out-xml.xml
branchv_0
changeset 244 d4f401b5f90c
parent 241 f71d300205b7
equal deleted inserted replaced
243:9c1d0c5ed599 244:d4f401b5f90c
       
     1 <stránka
       
     2 	xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana"
       
     3 	xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro">
       
     4 	
       
     5 	<nadpis>Generating XML</nadpis>
       
     6 	<perex>converting relational data to XML</perex>
       
     7 	<m:pořadí-příkladu>00400</m:pořadí-příkladu>
       
     8 
       
     9 	<text xmlns="http://www.w3.org/1999/xhtml">
       
    10 		
       
    11 		<p>
       
    12 			Relational data can be converted to various formats and one of them is the XML.
       
    13 			This is a good option for further processing e.g. using XSLT transformation or passing the XML data to some other tool.
       
    14 			Just use <code>relpipe-out-xml</code> instead of <code>relpipe-out-tabular</code> and the rest of the pipeline remains unchanged:
       
    15 		</p>
       
    16 		
       
    17 		<m:pre jazyk="bash"><![CDATA[ssh example.com cat /etc/mtab | relpipe-in-fstab | relpipe-out-xml]]></m:pre>
       
    18 		
       
    19 		<p>
       
    20 			Will produce XML like this:
       
    21 		</p>
       
    22 		
       
    23 		<m:pre jazyk="xml" src="examples/relpipe-out-fstab.xml"/>
       
    24 
       
    25 		<p>
       
    26 			Thanks to XSLT, this XML can be easily converted e.g. to an XHTML table (<code>table|tr|td</code>) or other format.
       
    27 			Someone can convert such data to a (La)TeX table.
       
    28 		</p>
       
    29 		
       
    30 		<p>
       
    31 			n.b. the format is not final and will change i future versions (XML namespace, more metadata etc.).
       
    32 		</p>
       
    33 		
       
    34 	</text>
       
    35 
       
    36 </stránka>