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

Saxon error: "If none of the conditions is satisfied,

Subject: Saxon error: "If none of the conditions is satisfied, an empty sequence..."
From: tom a <tasmito@xxxxxxxxx>
Date: Mon, 23 May 2011 15:47:57 -0700 (PDT)
 Saxon error: "If none of the conditions is satisfied
Hello, 

When attempting to compile a stylesheet containing the following
variable 
definition:

<xsl:variablename="seq_position"as="xs:integer*">
 <xsl:choose>
   <xsl:whentest="name() eq 'step1'">
      
<xsl:sequenceselect="count(preceding-sibling::step1) + 1"/>
   </xsl:when>
  
<xsl:whentest="name() eq 'step2'">
      
<xsl:sequenceselect="count(preceding-sibling::step2) + 1"/>
   </xsl:when>
  
<xsl:whentest="name() eq 'step3'">
      
<xsl:sequenceselect="count(preceding-sibling::step3) + 1"/>
   </xsl:when>
  
<xsl:otherwise>
       <xsl:sequenceselect="99+1"/><!--trying to placate
saxon->
   </xsl:otherwise>
 </xsl:choose> 
</xsl:variable>
 
I get the error:
"XTTE0570: Conditional expession: If none of the conditions is satisfied, an
empty sequence
  will be returned, but this is not allowed as the value of
variable 
$seq_position"
 
I haven't the foggiest idea why this would be. Any
help would be most greatly 
appreciated.

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.