Marc wrote:
> I'm a new user from XMLEditor and I try to use it whith existing DTD.
> I have a problem with the image-viewport function, because the attribute have
> to be in lowercase and mine is in mixed case.
> Is there a workaround about this?
> I know that in XHTML the attributes are in lowercase but in user DTD they can
> be in uppercase or mixed.
In CSS, identifiers are generally case-insensitive. Therefore, in such
case, you need to use a string instead of an identifier.
Example (*BAD* will not work):
---
image {
display: inline;
content: image-viewport(attribute, srcFile,
data-type, anyURI);
}
---
Example (should work fine):
---
image {
display: inline;
content: image-viewport(attribute, "srcFile",
data-type, anyURI);
}
---