Thank you, my document conforms to XML schema and I have namespace 
prefixes declared, but still

tns|*::attribute(ons|*)

brings up the error message in XXE 3.7.0 saying my CSS file is invalid

>>
syntax error: "ons|*" not allowed here
<<

Any ideas?
Jonas





Hussein Shafie <hussein at xmlmind.com> 
22.11.2007 11:21
Bitte antworten an
"xmleditor-support at xmlmind.com" <xmleditor-support at xmlmind.com>


An
Jonas.Kilian at o2.com
Kopie
"xmleditor-support at xmlmind.com" <xmleditor-support at xmlmind.com>
Thema
Re: [XXE] CSS: Matching attributes from different namespace 






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