On Fri, Sep 25, 2009 at 3:46 PM, Steve Sanbeg <[email protected]> wrote: > I'm not sure that's entirely accurate. XSLT works on DOM trees, so > malformed XML shouldn't really apply. Of course, the standard command > line processors create this tree with a standard parser, usually an XML > parser. But in PHP, creating the DOM with a parser and transforming it > with XSLT are handled separately.
Interesting. In that case, theoretically, you could use an HTML5 parser, which is guaranteed to *always* produce a DOM even on random garbage input (much like wikitext!). Now, who's up for writing an HTML5 parser in PHP whose performance is acceptable? I thought not. :P Anyway, my other points (e.g., may as well use PHP instead if you want that much power) still hold. _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
