Damien Fitzpatrick wrote: > In my example *[vendor*="stuff"] the first * means that this pattern should > be matched for every element. The second * (after vendor) means that this > rule should be applied for all vendor attributes where the value for the > attribute includes the string "stuff" as a substring. Whereas the > *[vendor~="stuff"] would mean that the rule should be applied for all > elements with an attribute vendor that includes the value "stuff". > Basically the "~" will work for attribute values where an element looks like > <blah vendor="stuff morestuff blah"> but not values like <blah > vendor="stuff;morestuff;blah"> whereas using the the "*" selector should > work for both. With Docbook profiling it is recommended that the semicolon > is used as a separator between values within the attribute. Thus, XMLMind > not supporting the * selector for attribute values is a bit of a problem. > > You can find more information on these selectors here: > http://www.blooberry.com/indexdot/css/syntax/selectors/selectors.htm.
XXE fully supports the *CSS2* selectors. Excerpt of the W3C spec( http://www.w3.org/TR/REC-CSS2 ): ------------------------------------------ Attribute selectors may match in four ways: [att] Match when the element sets the "att" attribute, whatever the value of the attribute. [att=val] Match when the element's "att" attribute value is exactly "val". [att~=val] Match when the element's "att" attribute value is a space-separated list of "words", one of which is exactly "val". If this selector is used, the words in the value must not contain spaces (since they are separated by spaces). [att|=val] Match when the element's "att" attribute value is a hyphen-separated list of "words", beginning with "val". The match always starts at the beginning of the attribute value. This is primarily intended to allow language subcode matches (e.g., the "lang" attribute in HTML) as described in RFC 1766 ([RFC1766]). ------------------------------------------- The additional selectors described below, are part of the future *CSS3* standard ( http://www.w3.org/TR/css3-selectors ) ------------------------------------------ [att^=val] Represents the att attribute whose value begins with the prefix "val" [att$=val] Represents the att attribute whose value ends with the suffix "val" [att*=val] Represents the att attribute whose value contains at least one instance of the substring "val" ------------------------------------------ However we intend to implement these additional selectors in the near future (probably in XXE 2.6) because, like you, we need them here at XMLmind for our own business.

