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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
232
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
#!/bin/bash
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
get_atom() {
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
	wget --quiet --output-document - https://blog.frantovo.cz/agregace/c/
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
	# wget --quiet --output-document - https://blog.frantovo.cz/agregace/k/
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
	# cat atom.xml
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
}
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
c7d05cf04b76 examples: Read an Atom feed using XQuery and relpipe-in-xml
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
get_atom | galax-run -context-item /dev/stdin atom.xq | relpipe-in-xml | relpipe-out-tabular