Hi Michael,
   Kindly see my replies inline, please.

On Thu, Nov 12, 2009 at 8:08 PM, Michael Glavassevich
<[email protected]> wrote:
> Well, it's a problem if we're interpreting "fn" as something it's not. It
> could be bound to another namespace or none at all.

You have explained this correctly.

>> string(test) eq 'xxx'
>
> Does this work today?

Yes, it does. All built in XPath 2.0 functions work fine when invoked
like above (i.e, without specifying any prefix to built in XPath 2
function calls), with PsychoPath and Xerces assertions. This works ok
with the current Xerces SVN code. That's good according to me.

> Searching for "http://www.w3.org/2005/xpath-functions";
> in the code I couldn't see where it is being set as the default function
> namespace. Is this supported by PsychoPath?

Yes, this namespace is supported by PsychoPath. This namespace is
defined in XPath 2.0 F&O spec (ref,
http://www.w3.org/TR/xpath-functions/#namespace-prefixes).

This XPath 2 F&O namespace URI is enforced in Xerces code in the
class, AbstractPsychoPathImpl.java with this statement:

fDynamicContext.add_namespace("fn", "http://www.w3.org/2005/xpath-functions";);


> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [email protected]
> E-mail: [email protected]


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to