Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I pass a querystring to an XML SYSTEM uri?

Status
Not open for further replies.

Parsifal1970

Programmer
Jul 24, 2005
2
GB
I'm using an xsl stylesheet to transform an xml source from a remote URL. I'm using the xslt.pl processor available from " The remote URL is placed at the beginning of my stylesheet as a SYSTEM uri as follows

<?xml version="1.0"?>
<!DOCTYPE my-news [<!ENTITY news SYSTEM "]>
<xsl:stylesheet version="1.0">
<xsl:variable name="news">&news;</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="$news">

...

</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Now say the url of the XML source is " where *id* is a querystring parameter, is there any way of passing this value to the SYSTEM uri?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top