Taivo Sarapik wrote:
> when you use own dtd-file and attribute name contains uppercase letters
> (for example "createdDate") the replaced content doesn't recognize the 
> attribute.
> 
> For example
> 
> <css-file clip>
> 
> task:after { content: text-field(attribute, createdDate, columns, 8, 
> background-color, rgb(220,220,220), color, rgb(0,0,0)) " " 
> text-field(attribute, estimate, columns, 8, background-color, 
> rgb(220,220,220), color, rgb(0,0,0));
>               color: rgb(155,194,203);
>               }
> 
> </cssfile clip>
> 
> "createdDate"-attribute doesn't work in Xmlmind Standart v. 2.6 or
> previous versions, but "estimate" works fine.

In CSS, createdDate is parsed as an identifier and, unfortunately, 
unlike in XML, CSS identifiers are case-insensitive. This means that 
createdDate is parsed as createddate.

If you want to specify the name of an attribute in the text-field() 
construct, you need to specify it using something which is case sensitive:

* strings: text-field(attribute, "createdDate")
* OR qualified names: text-field(attribute, |createdDate) (|createdDate 
means local part=createdDate and no namespace. This is CSS3.).

Sorry for this pitfall.


Reply via email to