Thanks to all who helped (especially Brian St. Pierre). I finally got
the script to work, and put it on the web site (see
http://wiki.gnhlug.org/twiki2/bin/view/Www/OfficeSuites).
This is useful for extracting form data from an OO document (I mean
document forms, not OObase forms).
--Bruce
Bruce
Ahh. I see now why its an ugly hack. I shudder when thinking how you
discovered that syntax.
--Bruce
Bruce Dawson wrote:
> Is there a syntax error in there? I looks like the quotes don't match
> up. And I get the same error as before when I try to fix those up.
>
> --Bruce
>
> Brian St. Pierre wr
Is there a syntax error in there? I looks like the quotes don't match
up. And I get the same error as before when I try to fix those up.
--Bruce
Brian St. Pierre wrote:
> This is an ugly hack, but it works...
>
> xmlstarlet select --net -T \
> -N office='urn:oasis:names:tc:opendocument:xmlns
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.
On Wed, Mar 3, 2010 at 12:21 PM, Bruce Dawson wrote:
> [WARNING: Lots of code here...]
Adding the -C option to your command line yields:
http://www.w3.org/1999/XSL/Transform";
xmlns:exslt="http://exslt.org/common";
xmlns:math="http://exslt.org/math";
xmlns:date="http://exslt.org/dates-and-ti
[WARNING: Lots of code here...]
Gregg: Thanks for following up on this. I too thought xmlstarlet would
be an excellent tool, but I'm having problems running it.
I'm attempting to print out an input field using the script:
#!/bin/bash
# $Header$
# Fetch the value of a field from an O
lol :-)
Still, I'll take my OpenDocument over proprietary document formats any day.
And the ability to "grep" through them with xmlstarlet is pretty cool. As a
command-line front-end to libxml2 and xslt, it gives you the power of other
languages right at your console. I can imagine using this a
On Tue, Mar 2, 2010 at 11:36 PM, G Rundlett wrote:
> For example:
> xml select -N :1.0' -N
> table='urn:...
To borrow from JWZ: "Some people, when confronted with a problem,
think 'I know, I'll use XML.” Now they have two problems." ;-)
-- Ben
__
On Sun, Feb 28, 2010 at 6:03 PM, Bruce Dawson wrote:
> Has anyone used xmlstarlet (a command-line xml parser) to get data from
> content.xml (OpenOffice) files?
>
>
I had not heard of it before, so thanks for pointing it out. (Note to
general readers: on my Ubuntu system I had to create a symbol
Has anyone used xmlstarlet (a command-line xml parser) to get data from
content.xml (OpenOffice) files?
It seems to be complaining about Undefined namespace prefix, and I can't
seem to figure out what it wants.
Some background: I'm trying to create some shell scripts that will
extract (and possib
10 matches
Mail list logo