Saxon 9.2 rejects string literals in PITests?

View: New views
4 Messages — Rating Filter:   Alert me  

Saxon 9.2 rejects string literals in PITests?

by Norman Walsh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mike,

It appears that Saxon 9.2 rejects the expression:

  processing-instruction('test')

The XPath 2.0 spec says that form is allowed for backwards compatibility,
but doesn't appear to require backwards compatibility mode to be enabled
for this functionality. At least,

  http://www.w3.org/TR/xpath20/#prod-xpath-PITest

suggests to me that it should always be accepted.

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@...> | A man who is 'of sound mind' is one who
http://nwalsh.com/            | keeps the inner madman under lock and
                              | key.--Paul Valéry


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

attachment0 (191 bytes) Download Attachment

Re: Saxon 9.2 rejects string literals in PITests?

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It should work, and it works for me. What's the context in which it's
failing?

Regards,

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

 

> -----Original Message-----
> From: Norman Walsh [mailto:ndw@...]
> Sent: 20 October 2009 22:57
> To: saxon-help@...
> Subject: [saxon] Saxon 9.2 rejects string literals in PITests?
>
> Mike,
>
> It appears that Saxon 9.2 rejects the expression:
>
>   processing-instruction('test')
>
> The XPath 2.0 spec says that form is allowed for backwards
> compatibility, but doesn't appear to require backwards
> compatibility mode to be enabled for this functionality. At least,
>
>   http://www.w3.org/TR/xpath20/#prod-xpath-PITest
>
> suggests to me that it should always be accepted.
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@...> | A man who is 'of sound mind'
> is one who
> http://nwalsh.com/            | keeps the inner madman under lock and
>                               | key.--Paul Valéry
>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

Re: Saxon 9.2 rejects string literals in PITests?

by Norman Walsh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Michael Kay" <mike@...> writes:

> It should work, and it works for me. What's the context in which it's
> failing?

I'm evaluating an XPath expression that came from an XProc step. I'll
see if I can put together a small test case that demonstrates the
problem.

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@...> | When a thing has been said and well,
http://nwalsh.com/            | have no scruple. Take it and copy
                              | it.--Anatole France


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

attachment0 (191 bytes) Download Attachment

Re: Saxon 9.2 rejects string literals in PITests?

by Norman Walsh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Michael Kay" <mike@...> writes:

> It should work, and it works for me. What's the context in which it's
> failing?

<blush>Nevermind. Red herring. It was a quoted string problem
introduced by carelessly implementing the untypedAtomic
workaround.</blush>

                                        Be seeing you,
                                          norm

--
Norman Walsh <ndw@...> | Try as hard as we may for perfection,
http://nwalsh.com/            | the net result of our labors is an
                              | amazing variety of imperfectness. We
                              | are surprised at our own versatility in
                              | being able to fail in so many different
                              | ways.--Samuel McChord Crothers


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help 

attachment0 (191 bytes) Download Attachment