relpipe-data/examples-xquery-atom.xml
branchv_0
changeset 254 23247d93a012
parent 244 d4f401b5f90c
child 262 846510a73535
equal deleted inserted replaced
253:3d217f0c8769 254:23247d93a012
    33 		
    33 		
    34 		<p>Will generate a table with web news:</p>
    34 		<p>Will generate a table with web news:</p>
    35 		
    35 		
    36 		<m:pre jazyk="text" src="examples/atom.txt"/>
    36 		<m:pre jazyk="text" src="examples/atom.txt"/>
    37 		
    37 		
       
    38 		<p>Or with <code>relpipe-out-recfile</code>, we will get output in the recfile format (<a href="https://www.gnu.org/software/recutils/">GNU Recutils</a>), like this:</p>
       
    39 		
       
    40 		<m:pre jazyk="text" src="examples/atom.rec"/>
       
    41 		
    38 		<p>
    42 		<p>
    39 			For frequent usage we can create a script or funcrion called <code>relpipe-in-atom</code>
    43 			For frequent usage we can create a script or funcrion called <code>relpipe-in-atom</code>
    40 			that reads Atom XML on STDIN and generates relational data on STDOUT.
    44 			that reads Atom XML on STDIN and generates relational data on STDOUT.
    41 			And then do any of these:
    45 			And then do any of these:
    42 		</p>
    46 		</p>
    43 		
    47 		
    44 		<m:pre jazyk="bash"><![CDATA[wget … | relpipe-in-atom | relpipe-out-tabular
    48 		<m:pre jazyk="bash"><![CDATA[wget … | relpipe-in-atom | relpipe-out-tabular
    45 wget … | relpipe-in-atom | relpipe-out-csv
    49 wget … | relpipe-in-atom | relpipe-out-csv
    46 wget … | relpipe-in-atom | relpipe-out-gui
    50 wget … | relpipe-in-atom | relpipe-out-gui
    47 wget … | relpipe-in-atom | relpipe-out-nullbyte | while read_nullbyte published title url; do echo "$title"; done
    51 wget … | relpipe-in-atom | relpipe-out-nullbyte | while read_nullbyte published title url; do echo "$title"; done
    48 wget … | relpipe-in-atom | relpipe-out-csv | csv2rec | …
    52 wget … | relpipe-in-atom | relpipe-out-recfile
    49 ]]></m:pre>
    53 ]]></m:pre>
    50 
    54 
    51 		<p>
    55 		<p>
    52 			There are several implementations of XQuery.
    56 			There are several implementations of XQuery.
    53 			<a href="http://galax.sourceforge.net/">Galax</a> is one of them. 
    57 			<a href="http://galax.sourceforge.net/">Galax</a> is one of them.