Hello,

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;
}

--- 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)

Is there any solution for the problem (behinde the one, to let the user
open the catalog.xml in an text editor to correct the attribute)?

Best Regards
Thomas



Reply via email to