LIONEL BARTH wrote:
>
> I have a problem handling attributes with capital letters with CSS in XEE 2.2
>
> The DTD contains :
> <!ELEMENT MapRef (#PCDATA) >
> <!ATTLIST MapRef Name CDATA "" Point CDATA "">
> The instance is like :
> <MapRef Name="Amsterdam" Point="58">the central station</MapRef>
>
> The CSS style sheet contains :
> MapRef:before { content: "[name] " attr(Name) ", [point] " attr(Point);
> }MapRef { display: inline; }
> This is valid for the W3C css-validator, but does not work in XXE.
> The attributes values of "Name" and "Point" are displayed only when the
> attributes are spelled "name" and "point".
>
> Is there any solution other than changing the attribute names in the dtd, the
> css and all the instances ?
CSS is case insensitive, that's why all identifiers are converted to
lower-case at CSS file parse time. The CSS is of course valid but the
style engine of XXE will not find the value of attr(name) and
attr(point).
The solution is to use strings. That is, use attr("Name") and
attr("Point") instead of attr(Name) and attr(Point).