xsl-list
[Top] [All Lists]

RE: escaping

2003-06-19 06:46:12
You could use the saxon:serialize() extension function.

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Guy McArthur
Sent: 19 June 2003 00:35
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] escaping


The description element of a RSS 2.0 item may contain entity-encoded 
html. Is there an easy way to "escape" a block of input 
xhtml, when the 
output is xml? Small example of what the output should look like:

<?xml version="1.0"?>
<rss version="2.0">
   <item>
     <description>
        &lt;p&gt; This is a paragraph of html. &lt;/p&gt;
     </description>
   </item>
</rss>

Which is pretty silly, don't know why they didn't allow it to 
be xhtml, 
and/or use namespaces.
-- 
*Guy McArthur* mailto://guym(_at_)arizona(_dot_)edu 
http://guymcarthur.com *LPL Rm. #538* : work> {520.621.6373} 
cell{520.869.7317}




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



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



<Prev in Thread] Current Thread [Next in Thread>