Cannot define annotated functions named "lt"

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

Cannot define annotated functions named "lt"

Eric van der Vlist
Hi,

I am trying to use transform.xq (https://github.com/jpcs/transform.xq )
with Saxon and Saxon objects to calling annotated functions "lt":
https://github.com/jpcs/transform.xq/issues/1

This can be reproduced by this simple XQuery:

++++++++++++++++++++++++++++++++++++++++++++++
xquery version "3.0";

declare default function namespace "http://example.com";

declare %private function lt() as item()*{
    ()
};

()
++++++++++++++++++++++++++++++++++++++++++++++

Error: System
ID: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
Main validation
file: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
Engine name: Saxon-EE XQuery 9.5.1.7
Severity: fatal
Description: XPST0003: expected "<function>(", found "lt"
Start location: 5:0
URL: http://www.w3.org/TR/xpath20/#ERRXPST0003

Note that the error disappears if you remove the annotation.

Eric



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Cannot define annotated functions named "lt"

Michael Kay
Thanks for reporting it, Eric. I've logged it here

https://saxonica.plan.io/issues/2318

and assigned it to Debbie Lockett.

We'll try to fix it in time for your XML London 2015 presentation ;-)

Michael Kay
Saxonica
[hidden email]
+44 (0) 118 946 5893




On 19 Feb 2015, at 07:59, Eric van der Vlist <[hidden email]> wrote:

> Hi,
>
> I am trying to use transform.xq (https://github.com/jpcs/transform.xq )
> with Saxon and Saxon objects to calling annotated functions "lt":
> https://github.com/jpcs/transform.xq/issues/1
>
> This can be reproduced by this simple XQuery:
>
> ++++++++++++++++++++++++++++++++++++++++++++++
> xquery version "3.0";
>
> declare default function namespace "http://example.com";
>
> declare %private function lt() as item()*{
>    ()
> };
>
> ()
> ++++++++++++++++++++++++++++++++++++++++++++++
>
> Error: System
> ID: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
> Main validation
> file: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
> Engine name: Saxon-EE XQuery 9.5.1.7
> Severity: fatal
> Description: XPST0003: expected "<function>(", found "lt"
> Start location: 5:0
> URL: http://www.w3.org/TR/xpath20/#ERRXPST0003
>
> Note that the error disappears if you remove the annotation.
>
> Eric
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Cannot define annotated functions named "lt"

Eric van der Vlist
Great, thanks!

Eric

Le jeudi 19 février 2015 à 09:51 +0000, Michael Kay a écrit :

> Thanks for reporting it, Eric. I've logged it here
>
> https://saxonica.plan.io/issues/2318
>
> and assigned it to Debbie Lockett.
>
> We'll try to fix it in time for your XML London 2015 presentation ;-)
>
> Michael Kay
> Saxonica
> [hidden email]
> +44 (0) 118 946 5893
>
>
>
>
> On 19 Feb 2015, at 07:59, Eric van der Vlist <[hidden email]> wrote:
>
> > Hi,
> >
> > I am trying to use transform.xq (https://github.com/jpcs/transform.xq )
> > with Saxon and Saxon objects to calling annotated functions "lt":
> > https://github.com/jpcs/transform.xq/issues/1
> >
> > This can be reproduced by this simple XQuery:
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++
> > xquery version "3.0";
> >
> > declare default function namespace "http://example.com";
> >
> > declare %private function lt() as item()*{
> >    ()
> > };
> >
> > ()
> > ++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Error: System
> > ID: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
> > Main validation
> > file: /home/vdv/projects/lab/presentations/xml-london-2015/transform.xq/lib/Untitled4.xquery
> > Engine name: Saxon-EE XQuery 9.5.1.7
> > Severity: fatal
> > Description: XPST0003: expected "<function>(", found "lt"
> > Start location: 5:0
> > URL: http://www.w3.org/TR/xpath20/#ERRXPST0003
> >
> > Note that the error disappears if you remove the annotation.
> >
> > Eric
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration & more
> > Get technology previously reserved for billion-dollar corporations, FREE
> > http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> > _______________________________________________
> > saxon-help mailing list archived at http://saxon.markmail.org/
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/saxon-help 
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help 
>



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help