View Single Post
  #3 (permalink)  
Old September 25th, 2004, 04:19 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Your first comment is correct. The result of the first example should be "{}text".

When you declare a default XPath namespace, the path expressions
select nothing because the /chap is expanded to {default-uri}chap, and there is
no such element (the chap element is in no namespace). However, the latest versions
of the spec say that this is not an error: resolve-QName should return () if the
first argument is (). Saxon needs to be updated.

It also appears that the current Saxon implementation is returning the null namespace
for all unprefixed names, rather than the default namespace. This is incorrect, and
appears to be based on an earlier version of the spec that either defined it this way,
or left it unclear what was intended. (Unprefixed QNames in XSLT content always assume
the null namespace, whereas unprefixed QNames in XML Schema assume the default namespace,
and this function is specified to use the latter interpretation.)

Thanks for the comment.

Generally, if you have a comment on Saxon it's best to send it via the saxon-help list at
Sourceforge; if you find an error in the books, it's best to use the errata form. This time
you seem to have succeeded in doing both at once!



Michael Kay

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