Not a bug.

To make it simple, CSS identifiers are case-insensitive (this is in the
standard).

---
file-name-field(attribute, rewritePrefix, [...]
---

is understood to be:

---
file-name-field(attribute, rewriteprefix, [...]
---

The cure is to use a CSS string instead of a CSS identifier:

---
file-name-field(attribute, "rewritePrefix", [...]
---


Thomas J. Sebestyen wrote:
> I have the following problem:
> I have written an addon for XMLmind inc. a catalog.xml
> To use the addon, the users have to edit at first this catalog file
> to choos a folder (among other things). This can be done in XMLmind
> istself.
> 
> 
> --- excerpt catalog.xml---
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/css" href="css/catalog.css" title="Catalog 
> Stylesheet" ?>
> <catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" 
> xmlns:ns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>     <rewriteURI rewritePrefix="" uriStartString="abcd:" />
> </catalog>
> 
> 
> ---excert catalog.css ---
> 
> rewriteURI:first-of-type:before {
>         display: inline;
>         content: division(content(paragraph(content(attributes()))));
> }
> rewriteURI:first-of-type::attribute(rewritePrefix) {
>         attribute-content-left: " some advice for the user";
>         attribute-content-middle: " ";
>         attribute-content-right: file-name-field(attribute, rewritePrefix, 
> absolute, yes, directory, yes, columns, 33, color, green);
>         show-attribute:always;
> }


This seems to be *much* too complicated. Why don't you simply use
something like:

---
rewriteURI:first-of-type:before {
  display: inline;
  content: " some advice for the user " file-name-field(attribute,
"rewritePrefix", absolute, yes, directory, yes, columns, 33, color, green);
}
---


> --- command to save the file ---
> 
> <command name="abcd.loadShortConfig">
> <macro>
>    <sequence>
>    <command name="XXE.save" parameter="[ifNeeded]" />
>    <command name="XXE.open" parameter="%c/first-info-to-config-xmlmind.xml" />
>    <command name="XXE.close" parameter="%c/catalog.xml" />
>   </sequence>
> </macro>
> </command>
> 
> -------
> 
> When XMLmind save the changes it rewrite the attribbute  "rewritePrefix"
> to "rewriteprefix".
> Afert this rewriting XMLmind ignores the Entry:
> <rewriteURI rewriteprefix=" ... " uriStartString="abcd:" />
> and the addon do not work properly (i.e. the folder hold images which
> shold be displayed in the (later) xml files. the folder itself can be
> anywhere on the system of the user, an because it's a check out from an
> SVN-repository, i can not put the content into the addon)
> 

Reply via email to