xsl-list
[Top] [All Lists]

How do you un-escape in HTML

2003-12-11 06:50:29
Hello xsl-list,

HOW do I display original data?

This is my output in HTML   (cell in a TABLE)
 'table' and 'inline-table' elements

original data
'table' and 'inline-table' elements

In the XML file I have escapes e.g. ' for '

XML Data for the element
<AppliesTo>&amp;apos;table&amp;apos; and &amp;apos;inline-table&amp;apos; 
elements</AppliesTo>



In the xsl transform file.

        <!--  Top level declartions -->
        <xsl:import href="../stylesheets/utils1.xsl" />
        <xsl:output method="html"/>


        <xsl:element name="td">
             <xsl:value-of select="./AppliesTo"/>
        </xsl:element>


At an earlier stage in VB I build the xml & put the escapes in.
Using MSXML2 Doc4

   '* Get rid of occurrences of '<'
   strContentCandidate = Replace(strContentCandidate, "<", "&lt;")
   
   '* Get rid of occurrences of '>'
   strContentCandidate = Replace(strContentCandidate, ">", "&gt;")
   
   '* Get rid of occurrences of '&'
   strContentCandidate = Replace(strContentCandidate, "&", "&amp;")
   
   '* Get rid of occurrences of '"'
   strContentCandidate = Replace(strContentCandidate, """", "&quot;")
   
   '* Get rid of occurrences of "'"
   validXMLContent = Replace(strContentCandidate, "'", "&apos;")


-- 
Best regards,
 Arthur                          mailto:ArthurMaloney(_at_)seipas(_dot_)com


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



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