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

Two versions of variable expression

Subject: Two versions of variable expression
From: "Joerg M. Colberg" <joerg.colberg@xxxxxxxxxxx>
Date: Tue, 10 Apr 2001 12:47:16 -0400
variable expression
Hi all,

   I posted this question last week already but somehow it never
showed up on the list. So here is my question again. Consider the
following two expressions:

<xsl:variable name="cell">
  <xsl:value-of select="following-sibling::*[position() =
1]/text[@name=$colname] |
                        following-sibling::*[position() =
1]/select[@name=$colname] |
                        following-sibling::*[position() =
1]/checkbox[@name=$colname] |
                        following-sibling::*[position() =
1]/label[@name=$colname]"/>
</out:variable>

<xsl:variable name="cell" select="following-sibling::*[position() =
1]/text[@name=$colname] |
                           following-sibling::*[position() =
1]/select[@name=$colname] |
                           following-sibling::*[position() =
1]/checkbox[@name=$colname] |
                           following-sibling::*[position() =
1]/label[@name=$colname]"/>

The second expression allows me to work with $cell, the first expression
doesn't.
In the case of the first expression I get an error message even though I
know that he
node I'm interested in exists. Why is that? Unfortunately, I cannot use the
second
expression because I have to add some if-statement into the whole business.

- Joerg


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.