As
noted earlier, I'm using XML to produce several HTML documents.
My first step is to simply read one docsource file and produce one html file from it. I decided to use XML::Twig, as being the "Perlish" solution.
A couple questions:
- How can I specify a twig_handlers for all otherwise-unspecified top-level (e.g. immediate children under the document's root node) elements?
- How should I form my output? I don't want to write as I go, because I'll collect and group the top-level nodes, and then sort them. So, is there a way to create another tree and copy transformed nodes to it? Or store all my nodes in a @list, then print them one-by-one?
- How is "mixed content" handled? Do I get an anonomous text node between subelements, or what?
Thanks,
—John