[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How do you un-escape in HTML

Subject: How do you un-escape in HTML
From: Arthur Maloney <ArthurMaloney@xxxxxxxxxx>
Date: Thu, 11 Dec 2003 13:50:29 +0000
escape in html
Hello xsl-list,

HOW do I display original data?

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

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

In the XML file I have escapes e.g. &apos; 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@xxxxxxxxxx


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.