Re: [xsl] Can unparsed-text() consume an in-memory XML document? Can a string version of an XML document be converted into XML?

Subject: Re: [xsl] Can unparsed-text() consume an in-memory XML document? Can a string version of an XML document be converted into XML?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 14 Aug 2012 00:12:42 +0100
On 13/08/2012 21:15, Costello, Roger L. wrote:
Is there a way in XSLT to convert a string to XML?

That's called parsing. As Michael said XPath 3 drafts include a parse-xml function, or many xslt 1 and 2 processors have such an extension function, or, if you are feeling strange you could write a parser in xslt.

http://code.google.com/p/web-xslt/source/browse/trunk/htmlparse/htmlparse.xsl

David


-- google plus: https:/profiles.google.com/d.p.carlisle

Current Thread