>> namespace I have to qualify the element name with the namespace
>> prefix in the XPath expression for it to work.  Is there any way
>> to make XPathEvaluator() recognize element names without a prefix
>> as being in the default namespace?

>No, there isn't.  You must use a prefix for the default namespace.

I'm told XPath 2.0 is proposing to add a default-namespace mechanism.

I don't know whether they're going to do anything about my own pet peeve,
which is that there is no syntax in XPath itself for binding namespaces and
hence it's impossible to write an XPath that is completely self-contained
and portable; some (unspecified) source for the prefix-to-namespace mapping
is always required.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to