Jump to content

How to create link from xml data


gohsthb
 Share

Recommended Posts

<xsl:text disable-output-escaping="yes"><</xsl:text>a name="<xsl:value-of select='StartDate'/>"<xsl:text disable-output-escaping="yes">></xsl:text><xsl:text disable-output-escaping="yes"><</xsl:text>/a<xsl:text disable-output-escaping="yes">></xsl:text>

I have the above code that is supposed to create an <a name="name from xml data"></a>This seems to work fine in IE but firefox will show it as text like shown above.What is a possible solution to this? I just want it to create the name link. I also have a mailto: link that appears in the data that prints out entirely in text also. Again that is only in firefox IE is working just fine.

Link to comment
Share on other sites

<a><xsl:attribute name="name"><xsl:value-of select="StartDate" /></xsl:attribute></a>

The above code fixed it. Also realizing that the html code needs to be xhtml compliant also helps. Some of the missing things were being caused by capitalized tags in the html :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...