Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 17th, 2008, 01:15 PM
Registered User
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default parameterized if-then not working

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?
Old April 17th, 2008, 01:25 PM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts


But without seeing what your input XML looks like, its very hard to say.

/- Sam Judson : Wrox Technical Editor -/

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameterized Property surendraparashar C# 2005 4 October 17th, 2007 11:33 PM
Parameterized Query asters VB.NET 2002/2003 Basics 5 July 9th, 2007 12:08 PM
Document() ... parameterized ? asearle XSLT 18 October 4th, 2006 02:46 AM
Parameterized SQLDataAdapter boyshey VB.NET 2002/2003 Basics 1 April 14th, 2006 07:08 AM
Parameterized OracleDataCommand narendra_patil BOOK: Beginning ASP.NET 1.0 0 April 21st, 2005 05:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.