|
Subject:
|
parameterized if-then not working
|
|
Posted By:
|
hoqenishy
|
Post Date:
|
4/17/2008 1:15:20 PM
|
Hi all, I'm having slight issues with passing parameters to an if-then XSLT. The following works:
<p><h1>Report for <xsl:value-of select="$reportinggroup" /></h1></p> It shows the correct parameterized header in the HTML doc. However, I get nothing with this:
<xsl:for-each select="//audits/auditItem">
<xsl:if test="./auditConsistentCount = 1 and contains(./auditGroup, $reportinggroup)">
...
It never runs the code in this loop, even though the conditions should be met. Am I doing something terribly wrong?
|
|
Reply By:
|
samjudson
|
Reply Date:
|
4/17/2008 1:25:22 PM
|
Probably.
But without seeing what your input XML looks like, its very hard to say.
/- Sam Judson : Wrox Technical Editor -/
|
|