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

Variables have no value

Subject: Variables have no value
From: "Angela Williams" <Angela.Williams@xxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Feb 2007 13:13:51 -0600
 Variables have no value
Good afternoon -
I'm using XSLT 2.0, Saxon8b, XEP4.4...

Some of my variables are initializing and some are not. I've reordered them,
overlaid non-working ones with working ones, added new ones, renamed them and
revalued them and the same ones still won't initialize. I've googled and
searched through the 6 or 7 books on my desk and can't find a reason why. What
am I missing?

<xsl:template match="something">
    <xsl:variable name="A11" select="number(10)" />    <!-- NO VALUE -->
    <xsl:variable name="A21" select="number(4.5)"/>    <!-- NO VALUE -->
    <xsl:variable name="A12" select="number(313.6)" /> <!-- OK -->
    <xsl:variable name="A22" select="number(208.1)"/>  <!-- OK -->
    <xsl:variable name="A32" select="number(6)"/>      <!-- OK -->
    <xsl:variable name="A42" select="number(6)"/>      <!-- NO VALUE -->
    <xsl:variable name="A52" select="number(6)"/>      <!-- OK -->
    <xsl:variable name="A62" select="number(6)"/>      <!-- NO VALUE -->

    <xsl:variable name="B32" select="number(43)"/>   <!-- OK -->
    <xsl:variable name="B42" select="number(22)"/>   <!-- OK -->
    <xsl:variable name="B52" select="number(3)"/>    <!-- OK -->
    <xsl:variable name="B62" select="number(3)"/>    <!-- OK -->

    <!-- Do something with the variables here. Fails with Attribute 'x' cannot
have a value of NaN error.-->
</xsl:template>


Thanks!
Angela Williams
Channel Developer
The 401k Company
Austin, Texas, USA
512-344-1547
 

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.