[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Saxon error: "If none of the conditions is satisfi
On 23/05/2011 23:47, tom a wrote:
Hello, I assume you only get the error when the xsl:otherwise branch is absent, and when the declared type really doesn't allow an empty sequence (for example, as="xs:integer+" rather than as="xs:integer*"). The reason for the error is that omitting the otherwise branch is equivalent to writing <xsl:otherwise><xsl:sequence select="()"/></xsl:otherwise> and this would give a type error on the grounds that () is not a legal value for the variable. However, there have been a number of complaints about this interpretation of the spec, and I'm going to change it in the next release so you get a compile time warning, followed by a run-time error if the otherwise branch is actually selected. Michael Kay Saxonica
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|