Parameters don't work with xsl:template tag
|Reported by:||Owned by:||roadrunner|
With a parameter of xp_machineid in the macro command the following works almost. I am getting a dump of everything in the XML file before record $machineid and after $machineid. The transform is being applied ok to $machineid.
If I take the attribute selector out of the template tag and move it down to a value-of tag, all works well.
<xsl:template match="/systems"> <td><xsl:value-of select="computer[@id=$machineid]/information/name"/></td>
I am very new to all of this, but according to all I have read this should work. Is this a bug somewhere?
Change History (8)
comment:1 Changed 11 years ago by
|Owner:||changed from roadrunner to anonymous|
|Status:||new → assigned|
comment:2 Changed 11 years ago by
|Owner:||changed from anonymous to roadrunner|
|Status:||assigned → new|