Also, attributes shouldn't be prefixed, unless they are of a different
namespace than the element they are attached to.

----- Original Message -----
From: "bob mcwhirter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 5:30 PM
Subject: Re: [Jaxen] Default namespaces: alternatives?


> > Classic example: when navigating an XHTML document, where every element
and
> > attribute is in the xhtml namespace, can't I get rid of the namespace
prefix
> > from my xpath expressions?
>
> Not according to the w3c recommendation, nope.
>
> If you attempt to setup the namespace context with your URI bound to the
> empty string "", you'll see problems then as functions won't be resolved,
> since they don't live in the xhtml namespace.
>
> I'd just say pick a short prefix for your xpath.  ie, 'x'.
>
> -bob
>
>
>
> -------------------------------------------------------
> This sf.net emial is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
> _______________________________________________
> Jaxen-interest mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jaxen-interest
>



-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to