Is there an elegant, simple solution to this problem, without manually
changing <![endif] to <![endif]?
The elegant solution is to use a parser designed for the grammar of the
language you are trying to parse, not some other grammar of which that is a
bastardised version.
But a simple solution? No, you've got me there. TagSoup probably. Available in
Saxon as saxon:parse-html(). But I've no idea what it does with these
pseudo-tags.
Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--