Hi
I hope someone can help me with this
In an asp page, I am using xsl to display links using data from an xml file. It's working fine in IE6 and Netscape 7, but Netscape 6 (and possibly other browsers -- I don't have any others to test with!) have a problem because the html that's produced is not proper. The problem that occurs is the link does not appear or behave as a link -- it's just plain text.
Here's the html that's produced for a link:
There is no end tag for the <a>, and there's an extra backslash at the end of the beginning <a> tag.
Here's the code in my xsl file.
And from the xml file:
I have also tried this in my xsl file:
I hope someone can help me with this
In an asp page, I am using xsl to display links using data from an xml file. It's working fine in IE6 and Netscape 7, but Netscape 6 (and possibly other browsers -- I don't have any others to test with!) have a problem because the html that's produced is not proper. The problem that occurs is the link does not appear or behave as a link -- it's just plain text.
Here's the html that's produced for a link:
Code:
<a target="_blank" href="[URL unfurl="true"]http://www.frallc.com/"[/URL] />Tech-Ops 2004
Here's the code in my xsl file.
Code:
<a><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="href">[URL unfurl="true"]http://<xsl:value-of[/URL] select="eventurl"/></xsl:attribute></a><xsl:value-of select="desc"/>
And from the xml file:
Code:
<eventurl>[URL unfurl="true"]www.frallc.com/</eventurl>[/URL]
I have also tried this in my xsl file:
Code:
<xsl:element name="a">
<xsl:attribute name="href">[URL unfurl="true"]http://<xsl:value-of[/URL] select="eventurl"/></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:element>
<xsl:value-of select="desc"/>