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

Re: Saxon bug in short-circuiting of expressions?

Subject: Re: Saxon bug in short-circuiting of expressions?
From: "Michael(tm) Smith" <smith@xxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Jul 2006 05:54:04 +0200
short circuiting sql
Michael Kay <mike@xxxxxxxxxxxx> writes:

[quoting a stylesheet in an earlier posting from me]

> >   <xsl:stylesheet version="1.0" 
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >     <xsl:output method="text"/>
> >     <xsl:template match="/">
> >       <xsl:if test="function-available('hoge') and 
> > hoge()">moge</xsl:if>
> >     </xsl:template>
> >   </xsl:stylesheet>
> > 
> The function hoge() is not in a namespace. Therefore it has to be a system
> function, not an extension function. Referring to a system function that
> doesn't exist is a static error, that is, it doesn't depend on whether the
> function call is actually executed or not.

OK, I see that now.

> For system functions the relevant statement is at the end of section 4:
> "the function library consists of the core function library together with
> the additional functions defined in [12 Additional Functions] and extension
> functions as described in [14 Extensions]; it is an error for an expression
> to include a call to any other function"


> However, if you change the xsl:stylesheet element to say version="2.0", then
> forwards compatibility comes into play, and no error is reported, because of
> the rule that you originally quoted.

With Saxon 6.5.5 in my environment, even after changing the value
of the version attribute to "2.0" (or any other value) in the
above stylesheet, I still get an "Unknown system function: hoge"
error, and the transformation fails.


Current Thread


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.
First Name
Last Name
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.