relpipe-data/examples/atom.sh
author František Kučera <franta-hg@frantovo.cz>
Fri, 11 Jan 2019 22:39:30 +0100
branchv_0
changeset 232 c7d05cf04b76
permissions -rwxr-xr-x
examples: Read an Atom feed using XQuery and relpipe-in-xml

#!/bin/bash

get_atom() {
	wget --quiet --output-document - https://blog.frantovo.cz/agregace/c/
	# wget --quiet --output-document - https://blog.frantovo.cz/agregace/k/
	# cat atom.xml
}

get_atom | galax-run -context-item /dev/stdin atom.xq | relpipe-in-xml | relpipe-out-tabular