XSL - QueryStrings.

"G" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Hi again,

I am running an ASP, for example:
www.site.com/index.asp?ID=100

I use XML & XSL to return links to the page: (thanks to Martin for the help 
on this)

<xsl:attribute name="href">
     <xsl:text>http://www.example.com/tracking.asp?Link=</xsl:text>
     <xsl:value-of select="SiteURL" />
</xsl:attribute>

Now, if I want to IN THE XSL force my ASP page to request the querystring 
value, like so (not sure of syntax)

<xsl:attribute name="href">
     <xsl:text>http://www.example.com/tracking.asp?ID=100</xsl:text>
     <xsl:value-of select="SiteURL" />
</xsl:attribute>

OR

<xsl:attribute name="href">
     <xsl:text>http://www.example.com/tracking.asp?ID=<%=Request.QueryString("ID")%></xsl:text>
     <xsl:value-of select="SiteURL" />
</xsl:attribute>

The trouble is, XSL does not like the characters in 
<%=Request.QueryString("ID")%>, and if I convert it all to UNICODE, it 
simply writes <%=Request.QueryString("ID")%> to the page :)  So in essence, 
I need XSL to send <%=Request.QueryString("ID")%> into my ASP page which 
should then treat it as server side ASP code.

Any help appreciated.


Regards,

Gary.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.