This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: extracting tags from a comment


It's another variant on the theme "my document contains [XML|HTML]
markup which I have carefully hidden from the parser, how can I treat it
as if it had been parsed normally".

The best answer is not to hide it from the parser in the first place
(i.e., don't wrap it in comments or CDATA).

Second best is to use disable-output-escaping.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Bryan Tarantina
> Sent: 03 July 2002 20:13
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] extracting tags from a comment
> 
> 
> 
> Quick question... I have an XML doc with a comment.
> The comment contains HTML code, and I am converting
> the XML to HTML... I am grabbing the value of the
> comment, but when it is transformed, it replaces all
> of the < with &lt; and such... anyway to prevent this?
> 
> so, something like this in the XML:
> 
> <!-- <font color="red">here</font> -->
> 
> translates to:
> 
> &lt;font color="red"&gt;here&lt;/font&gt; 
> 
> in the HTML.
> 
> Bryan
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]