Hi Elliote,
        sorry but I can't understand exactly what you try to tell me. Can you give me some kind of example about  what's correct and what's not with default namespaces and Xpaths?
       
        For instance,  imagine  I want to select a node from a XML with a default namespace using a XPath expresion.
                Should be this default namespace prefixed or not? I suspect from your response that  it should be prefixed if I want to use a XPath _expression_ to select a node inside it, is this correct?
        So, it will be not possible to select a node with XPath if the default namespace is not prefixed. Do you agree with that?
       

Thank you very much again,

        Ivan
               
               



       



Elliotte Harold <[EMAIL PROTECTED]>

06/10/2004 12:41
Please respond to xalan-dev

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: Problems with default namespace and XPath



[EMAIL PROTECTED] wrote:


>         If I ask for the /QUERY/REQUEST I got an error, but if I named
> the namespace, the problem disappear. I mean this:
>        

The default namespace never applies within XPath expressions. You need
to use prefixed names in the XPath expressions even if you use
unprefixed names in the document. XPath matches by namespace URI, not by
prefix.

--
Elliotte Rusty Harold
[EMAIL PROTECTED]

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


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to