From: Michael Kay <mike@sa...>  20091109 22:29:57

Which version of Saxon are you using? (9.1 or 9.2? And which edition?) Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > Original Message > From: Costello, Roger L. [mailto:costello@...] > Sent: 09 November 2009 21:22 > To: 'Mailing list for the SAXON XSLT and XQuery processor' > Subject: Re: [saxon] Some (more) questions about disabling a > stylesheet from accessing extension functions > > > Hi Michael, > > I created a stylesheet that uses three kinds of extension functions: > > 1. A Java method > > 2. An EXSLT function > > 3. A SAXON builtin extension function > > Here's my stylesheet: > > <?xml version="1.0"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; > xmlns:math="java:java.lang.Math" > xmlns:exslt="http://exslt.org/math"; > xmlns:saxon="http://saxon.sf.net/"; > extensionelementprefixes="math exslt" > version="2.0"> > > <xsl:template match="/*" > > > <xsl:message> > > <xsl:valueof select="math:sqrt(2)" /> > <xsl:valueof select="exslt:abs(8  12)" /> > <xsl:valueof select="saxon:iswholenumber(1.23)" /> > > </xsl:message> > > </xsl:template> > > </xsl:stylesheet> > > > When I ran the stylesheet with the SAXON flag: > > ext:on > > then all three kinds of extension functions were enabled and > the expected output was seen. > > When I ran the stylesheet with the SAXON flag: > > ext:off > > then the Java and EXSLT extension functions were disabled and > this error message was seen: > > external function calls have been disabled > > However, the SAXON builtin extension function remained > enabled and it produced the expected output. > > So, here's what I learned: > > 1. With extensions turned off (i.e., ext:off) then all > extension functions are disabled except for the SAXON > builtin extension functions. > > 2. With extensions turned on (i.e., ext:on) then the > stylesheet can invoke Java methods, EXSLT functions, and the > SAXON builtin extension functions. > > Do you agree? > > I believe that these three kinds of extension functionsJava > methods, EXSLT functions, and the SAXON builtin > functionsrepresent all of the kinds of extensions allowed > by SAXON (i.e., there are no other kinds of extension > functions). Correct? > > /Roger >  >  > Let Crystal Reports handle the reporting  Free Crystal > Reports 2008 30Day trial. Simplify your report design, > integration and deployment  and focus on what you do best, > core application coding. Discover what's new with Crystal > Reports now. http://p.sf.net/sfu/bobjjuly > _______________________________________________ > saxonhelp mailing list archived at > http://saxon.markmail.org/ saxonhelp@... > https://lists.sourceforge.net/lists/listinfo/saxonhelp 