>Eh guys, what about the <?xml> declarations??? AFAIK, you >can't have those in the middle of the file, can you? OK, I'm >just grumpy because I didn't think of it myself! ;-)
as long as you dont parse that the declaration and PIs dont matter ;-)
I believe <?xml> is a special PI. Anything with xml in its name is reserved in XML documents, and you can't have this special PI in the middle.
So could use regexp-filterchains for extracting/deleting them?
Probably.
>But seriously, I think Ant would be more useful if we allowed >custom SAX sources in <xslt>, to allow merging XML files like >in this use case, or allow processing HTML files in XML by >first normalizing it to XML using tag-soup, or allow >processing any file for which there's a parser that can output >SAX events. --DD mmmh .... SAX events as <resource>?
No, not that simple. A custom type that can implement a javax.xml.transform.sax.SAXSource. I didn't say it'd be easy, I said it would be useful ;-) --DD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]