[Haskell-cafe] XML transformation difficulties
garious at gmail.com
Fri Jul 14 19:22:26 EDT 2006
I'm trying to think of a way to translate this input, to the output below:
That is, anywhere there is a 'bar', replace it with the contents of the
'foo' it references. I'm having a difficult time representing this with
HXT's Arrow API because the value of the 'ref' attribute is the output of an
arrow, but I need it to be just a plain string so that I could use it as an
input parameter to the 'hasAttrValue' function. A similar problem, using
'processTopDown', once I traverse to a 'bar' node, I need to then traverse
the root again to find the 'foo', but I'm in the context of the 'bar' node,
not the root.
My ears are open to solutions with HaXML or Scrap Your XML-plate, or
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe