Jonas.Kilian at o2.com wrote:
> For this snippet
> 
> <tns:anyElement
>         ons:myAttribute1="4711" 
>         ons:myAttribute2="4712" />
> 
> this is how I'd expected to match "myAttribute1" and "myAttribute2" and 
> eventually more of them:
> 
> tns|*::attribute(ons|*)
> 
> or
> 
> [ons|*]
> 
> 
> None of this works, please help.

* If your document is conforming to a DTD, then XXE is *not* namespace 
aware and you need to write something like:

tns\:anyElement::attribute(ons\:myAttribute1)




* If your document is conforming a W3C or Relax NG schema (or if your 
document is not associated to any form of schema), then XXE is fully 
namespace aware and a rule such as:

tns|*::attribute(ons|*)

should work fine. (There are no known bugs related to this.)

--> Note that you need to declare the namespace prefixes in the CSS.

@namespace tns url(your_namespace_URI_1);
@namespace ons url(your_namespace_URI_2);

See http://www.w3.org/TR/css3-selectors/#typenmsp



Reply via email to