PDA

Click to See Complete Forum and Search --> : [RESOLVED] XML Link with Querystring


richy
Dec 7th, 2005, 02:43 PM
How do I make a link with a querystring in XML?

If I do:


<a href="filename.asp?KeyToPass=<xsl:value-of select="*[local-name()='key']" disable-output-escaping="yes"/>">

I get told it's invalid XML. I've seen XLink, but not completely sure how to use it. Can anybody help?


Thanks.

richy
Dec 7th, 2005, 04:14 PM
:eek2:

It might have helped if I wasn't being so dim and trying to do XML in XSL!
Off to bang my head against a wall! It has been a long day!


<a>
<xsl:attribute name="href">
filename.asp?KeyToPass=<xsl:value-of select="teamkey" />
</xsl:attribute>
<xsl:attribute name="target">new</xsl:attribute>
<xsl:value-of select="*[local-name()='key']" disable-output-escaping="yes"/>
</a>

CornedBee
Dec 8th, 2005, 01:12 PM
Ah, but how ugly compared to this:
<a href="filename.asp?KeyToPass={*[local-name()='key']}">

Edit: removed the dollar, it's incorrect.