Hi
I am very new to XSLT and have the following problem:
I would like to use a parameters value for the path to an attribute in my select query. For example:
I have an attribute named "pi" for the "date" element that sits in this path in my xml file:
visitors/visitor/date/@pi
so if I set the parameter:
<xsl:param name="myvar">date/@pi</xsl:param>
and create my select query to show each record with a date pi attribute with a value of 'Y':
<xsl:for-each select="visitors/visitor[$myvar = 'Y']">
it does not work as I was hoping???
I am probably thinking about things wrong, so if anyone could post any tips, that would be great.
Thanks,
Mat.