On Thursday, 12/19/2002 at 09:10 EST, "Rick Bullotta" 
<[EMAIL PROTECTED]> wrote:
> I is simple as long as there  aren't default namespaces in the XML 
> document...<g>.  Then it  gets  UGGGLY! ;>

Not horribly ugly -- you just have to remember to map the _namespaces_ in 
your XPath, not just to use corresponding prefixes. The same complication 
arises if the XML document redeclared a prefix; you need to use separate 
prefixes for the two different namespace URIs when writing your XPath.

For an overview of how to deal with this, see 
http://xml.apache.org/xalan-j/faq.html#faq-N101B9

(I do wish XPath had a non-prefix-based version of its syntax. It'd be 
extremely wordy, but it'd be a lot more robust and easier to generate. I'm 
considering proposing that they add that alternative in XPath 2.0...)

______________________________________
Joe Kesselman  / IBM Research


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

Reply via email to