relpipe-data/examples-in-xmltable-xhtml-outline.xml
branchv_0
changeset 290 e73765513aec
parent 288 5cf3a702f47d
equal deleted inserted replaced
289:34a7c4e318b3 290:e73765513aec
   111 		</p>
   111 		</p>
   112 		
   112 		
   113 		<m:pre jazyk="bash"><![CDATA[# our favorite function used also in other examples;
   113 		<m:pre jazyk="bash"><![CDATA[# our favorite function used also in other examples;
   114 # reads values separated by a \0 byte into a variable;
   114 # reads values separated by a \0 byte into a variable;
   115 # this is a safer way than a space or newline separated data:
   115 # this is a safer way than a space or newline separated data:
   116 read_nullbyte() { for v in "$@"; do export "$v"; read -r -d '' "$v"; done }
   116 read_nullbyte() { local IFS=; for v in "$@"; do export "$v"; read -r -d '' "$v"; done }
   117 
   117 
   118 wget -O - http://blog.frantovo.cz/ \
   118 wget -O - http://blog.frantovo.cz/ \
   119 	| relpipe-in-xmltable \
   119 	| relpipe-in-xmltable \
   120 		--namespace 'h' 'http://www.w3.org/1999/xhtml' \
   120 		--namespace 'h' 'http://www.w3.org/1999/xhtml' \
   121 		--relation 'images' \
   121 		--relation 'images' \