6.5 saxon and function-available() bug?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

6.5 saxon and function-available() bug?

dvint
I'm using a simple choice to detect the availability of the saxon functions
and function-available() is returning false even though I'm running saxon
and the stylesheets have the namespace and extension prefix information
provided.

I've tried both of these tests:
        test="function-available('group')"
        test="function-available('saxon:group')"

which seem to return false and

        test="function-available(group)"
        test="function-available(saxon:group)"

cause a runtime error indicating invalid QName.

Any idea what is wrong?

thanks
..dan
---------------------------------------------------------------------------
Danny Vint

Specializing in Panoramic Images of California and the West
http://www.dvint.com

voice: 510-522-4703


     




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 6.5 saxon and function-available() bug?

dvint
never mind, working too close to the problem to recognize and element from
a function! ;-)

..dan

At 02:16 PM 9/21/2005, Dan Vint wrote:

>I'm using a simple choice to detect the availability of the saxon
>functions and function-available() is returning false even though I'm
>running saxon and the stylesheets have the namespace and extension prefix
>information provided.
>
>I've tried both of these tests:
>         test="function-available('group')"
>         test="function-available('saxon:group')"
>
>which seem to return false and
>
>         test="function-available(group)"
>         test="function-available(saxon:group)"
>
>cause a runtime error indicating invalid QName.
>
>Any idea what is wrong?
>
>thanks
>..dan
>---------------------------------------------------------------------------
>Danny Vint
>
>Specializing in Panoramic Images of California and the West
>http://www.dvint.com
>
>voice: 510-522-4703
>
>
>
>
>
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by:
>Tame your development challenges with Apache's Geronimo App Server. Download
>it for free - -and be entered to win a 42" plasma tv or your very own
>Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
>_______________________________________________
>saxon-help mailing list
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/saxon-help

---------------------------------------------------------------------------
Danny Vint

Specializing in Panoramic Images of California and the West
http://www.dvint.com

voice: 510-522-4703


     




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: 6.5 saxon and function-available() bug?

Michael Kay
In reply to this post by dvint
There's no function called saxon:group, so returning false is correct - I
think you want element-available('saxon:group').

Passing it as a string (in quotes) is correct. If you do
function-available(saxon:group) it means
function-available(./child::saxon:group) and if the context node doesn't
have a child called saxon:group this will evaluate to "" which is not a
valid QName.

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

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Dan Vint
> Sent: 21 September 2005 22:16
> To: [hidden email]
> Subject: [saxon] 6.5 saxon and function-available() bug?
>
> I'm using a simple choice to detect the availability of the
> saxon functions
> and function-available() is returning false even though I'm
> running saxon
> and the stylesheets have the namespace and extension prefix
> information
> provided.
>
> I've tried both of these tests:
> test="function-available('group')"
> test="function-available('saxon:group')"
>
> which seem to return false and
>
> test="function-available(group)"
> test="function-available(saxon:group)"
>
> cause a runtime error indicating invalid QName.
>
> Any idea what is wrong?
>
> thanks
> ..dan
> --------------------------------------------------------------
> -------------
> Danny Vint
>
> Specializing in Panoramic Images of California and the West
> http://www.dvint.com
>
> voice: 510-522-4703
>
>
>      
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App
> Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> saxon-help mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Loading...