Using xmlstarlet and OpenOffice
Brian St. Pierre
brian at bstpierre.org
Wed Mar 3 14:25:23 EST 2010
This is an ugly hack, but it works...
xmlstarlet select --net -T \
-N office='urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0' \
-t -v 'office:document-content/office:body/office:text/text:p/text:span/text:text-input'
content.xml
Luckily it passes the namespace declaration through to the XSLT
unchanged. You only need to declare the namespaces used in the XPath
query.
-Brian
More information about the gnhlug-discuss
mailing list