I
Iain
I've got some XLST which extracts some stuff from a config file. it works
nicely. Now I want to make it work with a parameter
My original attempt looked like (fragment)
<xslaram name="StyleName" />
<xsl:template match="/Vendor/Style[@Name=$StyleName]" >
And failed. (replace $StyleName in the above with a real style name and it
works correctly). Eventually, I came up with this ...
<xslaram name="StyleName" />
<xsl:template match="/Vendor" >
<xsl:for-each select="Style[@Name=$StyleName]" >
Which works also. But WHY won't it work with the match?
Iain
PS. I claim no skill in these areas - xslt/xpath and their friends are NOT
pellicidly clear.
nicely. Now I want to make it work with a parameter
My original attempt looked like (fragment)
<xslaram name="StyleName" />
<xsl:template match="/Vendor/Style[@Name=$StyleName]" >
And failed. (replace $StyleName in the above with a real style name and it
works correctly). Eventually, I came up with this ...
<xslaram name="StyleName" />
<xsl:template match="/Vendor" >
<xsl:for-each select="Style[@Name=$StyleName]" >
Which works also. But WHY won't it work with the match?
Iain
PS. I claim no skill in these areas - xslt/xpath and their friends are NOT
pellicidly clear.