[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL Variable not getting set

Subject: XSL Variable not getting set
From: mIchael wolff <wolffmart@xxxxxxxxx>
Date: Wed, 14 Mar 2007 06:29:46 -0700 (PDT)
 XSL Variable not getting set
Hello,

I am using Saxon 8.8 and and trying to set a variable
when a certain value is found in the node list.

When I walk through the code with XMLSpy debug, I see
that the variable never gets set.  In fact,  it skips
everything between the <xsl:variable> tags and goes
right to the line: <xsl:if test="not(Found)">

Does anyone know what is wrong with this template?

Thanks,
Mike

<xsl:template name="monthly" >
		<xsl:param name="mon" />
		
		<xsl:variable name="Found">
			<xsl:for-each select="current-group()">
				<xsl:sort data-type="number" order="ascending"/>
				<xsl:choose>
					<xsl:when test="@month=$mon">,<xsl:value-of
select="@cost"/>
						<xsl:text>pooper</xsl:text>
					</xsl:when>		
				</xsl:choose>							
			</xsl:for-each>
		</xsl:variable>
		<xsl:if test="not(Found)">
			<xsl:text>,0</xsl:text>
		</xsl:if>
	</xsl:template>


 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.