On Wed, 12 Sep 2001, James Strachan wrote:

> From: "Jérôme Nègre" <[EMAIL PROTECTED]>
> > If I evaluate the xpath expression "*:pizza/*:type",
>
> I didn't think it was valid to use a wildcard for a namespace prefix. If
> thats the case then above would have to be done as
>
> *[local-name()='pizza']/*[local-name()='type']

Hmm. I think you're right. A bug report should be filed then.

From org/jaxen/expr/DefaultNameStep.java:

  this.matchesAnyName = "*".equals( localName );
  this.matchesAnyNamespace = matchesAnyName || prefix.equals( "*" );

Jaxen does allow it. But perhaps the parser doesn't always handle it well.

- Erwin




_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to