Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem HTML code in XML - Error using XSL

Status
Not open for further replies.

HumbleSeeker

Programmer
Nov 29, 2002
37
0
0
GB
I'm basically capturing an XML feed. I'm creating a file which I'm placing the feed in, I'm using ASP version 3.

I'm then using ASP to apply an XSL to the XML document.

My problem occurs when the supplier of the XML feed slips a HTML hyperlink tag into the content he's sending me. Is there anyway that I can get the XSL to apply without stumbling on the HTML tag?

I've tried using the disable-output-escaping, but it dosen't appear to have an effect.

The problem line of code is below.

<xsl:template match="Para">
<p><span class="para"><xsl:value-of select="." disable-output-escaping="yes"/></span></p>
</xsl:template>

Any help is much appreciated.

Humble Seeker
-----------------------------------------------------
The longest journey begins with the smallest step.
 
If you want to just let HTML slide through, you could use the xsl:copy or xsl:copy-of to copy the source element to the result tree. xsl:copy-of will copy attributes and children.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top