|
-
Dec 7th, 2005, 03:43 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] XML Link with Querystring
How do I make a link with a querystring in XML?
If I do:
Code:
<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.
ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.
Richard Whitehouse.
Join the Footie Predictions League
"Make it idiot proof and someone will make a better idiot."
-
Dec 7th, 2005, 05:14 PM
#2
Thread Starter
Hyperactive Member
Re: XML Link with Querystring
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!
Code:
<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>
ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.
Richard Whitehouse.
Join the Footie Predictions League
"Make it idiot proof and someone will make a better idiot."
-
Dec 8th, 2005, 02:12 PM
#3
Re: [RESOLVED] XML Link with Querystring
Ah, but how ugly compared to this:
Code:
<a href="filename.asp?KeyToPass={*[local-name()='key']}">
Edit: removed the dollar, it's incorrect.
Last edited by CornedBee; Dec 14th, 2005 at 04:50 AM.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|