Discussion:
sgrep howto or examples
(too old to reply)
l***@nospam.nosoftwarepatents.edu
2005-01-08 13:10:40 UTC
Permalink
I'm playing with sgrep and am looking for some more detailed examples,
recipes, howtos or other documentation. The man page is currently
a little too abstract for me.

The specific task I would like to figure out is removing an element and
any elements that might be nested within if a specific attribute contains
a specific value.
--
Lars
"Linux is really what happened when the demand side started
to supply itself." - Doc Searls
f***@arcor.de
2005-01-09 14:24:35 UTC
Permalink
Post by l***@nospam.nosoftwarepatents.edu
I'm playing with sgrep and am looking for some more detailed examples,
recipes, howtos or other documentation. The man page is currently
a little too abstract for me.
The specific task I would like to figure out is removing an element and
any elements that might be nested within if a specific attribute contains
a specific value.
Are your processing SGML? If so you may want to have a look at
MetaMorphosis (not open source but free).:
http://www.ovidius.com/en/download/metamorphosis
This is a tree transformer that processes (among others) SGML and
XML. The task you describe is a one-liner. Note however, that
MetaMorphosis is parser-based (uses SP for SGML). You need a
valid instance with DTD, all necessary entities, declaration and
catalog. No quick and dirty processing. Furthermore, everytime
you process an instance, a tree is built, processed and exported
again.
There is also a forum where you can ask questions:
http://www.ovidius.de/forum/index.php

Loading...