J
John Wilkin
I'm using an xsl stylesheet to transform an xml source from a remote
URL. I'm using the xslt.pl processor available from
"http://www.dopscripts.com/doc/description.html". The remote URL is
placed in the prologue/prolog (US English spellings have never come
naturally to me) of the xsl document as follows:
<?xml version="1.0"?>
<!DOCTYPE my-news [<!ENTITY news SYSTEM "http://path.to/xmlfile.xml">]>
<xsl:stylesheet version="1.0">
<xsl:variable name="news">&news;</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="$news">
etc
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Now say the url of the XML source is
"http://path.to/xmlfile.xml?id=*id*" where *id* is a querystring
parameter, is there any way of passing this value to the SYSTEM uri?
I know there are methods of passing external parameters into xsl, but as
this question is about what happens before the xsl begins this is more
of a general xml question than a specific xsl question
URL. I'm using the xslt.pl processor available from
"http://www.dopscripts.com/doc/description.html". The remote URL is
placed in the prologue/prolog (US English spellings have never come
naturally to me) of the xsl document as follows:
<?xml version="1.0"?>
<!DOCTYPE my-news [<!ENTITY news SYSTEM "http://path.to/xmlfile.xml">]>
<xsl:stylesheet version="1.0">
<xsl:variable name="news">&news;</xsl:variable>
<xsl:template match="/">
<xsl:for-each select="$news">
etc
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Now say the url of the XML source is
"http://path.to/xmlfile.xml?id=*id*" where *id* is a querystring
parameter, is there any way of passing this value to the SYSTEM uri?
I know there are methods of passing external parameters into xsl, but as
this question is about what happens before the xsl begins this is more
of a general xml question than a specific xsl question