RE: [xsl] Including an HTML tag inside the XML text

Subject: RE: [xsl] Including an HTML tag inside the XML text
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 3 Mar 2005 15:15:39 -0000
> I want to write an XML something like this:
> 
> <node>
>   <text>blablabla<br>blebleble</text>
> </node>
>

The only XML I can think of that is something like this is:

<node>
   <text>blablabla<br/>blebleble</text>
</node>
 
XSLT can only generate well-formed XML, it can't generate "something like
XML". You can serialize the result tree using the HTML output method, but I
don't think you would really want to do this if it contains non-HTML
elements such as <node> and <text>. 

Michael Kay
http://www.saxonica.com/

Current Thread