|
Subject: Re: [xsl] Printing CDATA from feed as HTML From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> Date: Fri, 13 Jun 2008 09:44:16 +0100 |
>>>>> "David" == David Carlisle <davidc@xxxxxxxxx> writes:
>> I think a parse() function almost made it into 2.0...
David> it did.
David> <xsl:function name="x:parse" as="document-node()">
David> <xsl:param name="s" as="xs:string"/> <xsl:sequence
David> select="doc(concat('data:text/xml,'$s))"/> </xsl:function>
Almost.
Your data URI needs the charset parameter.
And application/xml, not text/xml - the latter is almost never correct,
and certainly not here (the contents of $s is read by an XML parser,
not a human).
--
Nit-picker
Preston Lancashire
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Printing CDATA from feed , David Carlisle | Thread | Re: [xsl] Printing CDATA from feed , David Carlisle |
| Re: [xsl] Printing CDATA from feed , David Carlisle | Date | Re: [xsl] Printing CDATA from feed , David Carlisle |
| Month |