Parsifal1970
Programmer
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?
<?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?