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

RE: function-available returns false

Subject: RE: function-available returns false
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 2 May 2008 02:04:59 +0100
RE:  function-available returns false
You're right, there's a bug here, previously unreported as far as I can
tell. A call to function-available() supplying a run-time string is working
in 6.5.5 only if the string has been interned.

In practice, of course, function-available() is almost always called with a
string literal as its argument.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Manfred Staudinger [mailto:manfred.staudinger@xxxxxxxxx] 
> Sent: 01 May 2008 18:26
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  function-available returns false
> 
> 2008/5/1 Andrew Welch <andrew.j.welch@xxxxxxxxx>:
> > On 01/05/2008, Manfred Staudinger 
> <manfred.staudinger@xxxxxxxxx> wrote:
> >  > With the stylesheet below Saxon 6.5.5 returns false for  >  
> > function-available for all xslt and xpath functions.
> >
> >  >  Any idea?
> >
> >  Um... yes:
> >
> >  >             <dr:functions show="false">
> >
> >  and:
> >
> >
> >  >             <xsl:with-param name="show" select="@show='true'"/>
> >
> >  If you'd tried to produce cut down examples, rather posting your  
> > entire transform you would probably would have spotted that....
> >
> >  (plus if you were questioning whether function-available() works in
> >  6.5.5 there are easier ways of finding out!)
> 
> Sorry for that ...
> XML:
> <e>number</e>
> 
> XSLT:
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/"><xsl:apply-templates/></xsl:template>
> <xsl:template match="e">
>         <xsl:copy>
>                 <xsl:value-of select="function-available(.)"/>
>         </xsl:copy>
> </xsl:template>
> </xsl:stylesheet>
> 
> Manfred

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.