|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How do you un-escape in HTML
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>&apos;table&apos; and &apos;inline-table&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, "<", "<")
'* Get rid of occurrences of '>'
strContentCandidate = Replace(strContentCandidate, ">", ">")
'* Get rid of occurrences of '&'
strContentCandidate = Replace(strContentCandidate, "&", "&")
'* Get rid of occurrences of '"'
strContentCandidate = Replace(strContentCandidate, """", """)
'* Get rid of occurrences of "'"
validXMLContent = Replace(strContentCandidate, "'", "'")
--
Best regards,
Arthur mailto:ArthurMaloney@xxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








