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 / ASP

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.
 
Easiest solution I can think of would be to create a template for anchir tags, then just spit the href and text back out in an anchor tag.

-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top