Results 1 to 3 of 3

Thread: [RESOLVED] XML Link with Querystring

  1. #1
    Hyperactive Member richy's Avatar
    Join Date
    Jan 99
    Location
    Liverpool, England
    Posts
    353

    Resolved [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."

  2. #2
    Hyperactive Member richy's Avatar
    Join Date
    Jan 99
    Location
    Liverpool, England
    Posts
    353

    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."

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 01
    Location
    In a microchip!
    Posts
    11,594

    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 03: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
  •