so i tried the same as above: $e/child::data:length/attribute::attr
and then the attribute IS NOT MISSING !
hmm, so why isn't the attribute not selected, if i use the attribute()-tester ??
by the way, can anybody explain me, why i can not address attributes anymore (using @attribute), after i have defined a schema for default namespace?
import schema default element namespace = "http://localhost/complex" at "complex.xsd"
Subject:Re: attribute()-tester does not work with default namespace ? Author:(Deleted User) Date:19 Aug 2004 05:21 PM
>the attribute is MISSING !!! Why ????
>so i tried the same as above: $e/child::data:length/attribute::attr
>and then the attribute IS NOT MISSING !
>hmm, so why isn't the attribute not selected, if i use the
The attribute() tester is following the same rules of the element() tester,
that is, it is using the default namespace declaration and changing attr
into data:attr (and it's not finding it, as attributes are by default in
the empty namespace). And this is clearly a bug; thanks for spotting it.