Hi,
while migrating our macro commands from XMLmind 3.2.0 to 4.1.0 I have some
problem with the recent version of the "include"-command.
We use the following command "change-to-reference" for modularizing an
document being edited:
<command name="change-to-reference">
<macro>
<sequence>
<command name="selectNode"
parameter="ancestorOrSelf[implicitElement] chapter section appendix" />
<command name="confirm" parameter="Do you really want to ..." />
<command name="selectFile" parameter="saveFile
%p\..\docs-teile\*.xml" />
<set variable="filename-new" expression="%_" plainString="true" />
<get expression="$filename-new" />
<command name="copy-docu" parameter="%_" />
<set variable="clipboard" expression="%_" plainString="true" />
<get expression="$filename-new" />
<get expression="relativize-uri('file:///%_')" />
<set variable="filename-new" expression="%_" plainString="true" />
<get expression="$filename-new" />
<command name="include" parameter="replace %_ " />
</sequence>
</macro>
</command>
<command name="copy-docu">
<process>
<copyDocument to="%0"
selection = "true"
preserveEntityRefs = "true"
preserveXIncludes = "true"
indent="true"
encoding="ISO-8859-1">
<resources match=".*" />
</copyDocument>
<read file="%0" encoding="ISO-8859-1" />
</process>
</command>
The command copies the selected chapter, section or appendix into a
separate file and replaces the selection with the reference to the new
file.
If the user selects a chapter or section, which does not have an ID,
everything works fine. But if it has an ID the user gets the error message
'Die Knotenpunkte, identifiziert durch "-" konnten nicht in Dokument
"..filename.." gefunden werden.' (Translation: the nodes, identified by
"-" could not be found in document "... filename ...").
This also happens if I change the command
<command name="include" parameter="replace %_ " />
into
<command name="include" parameter="replace %_ ..ID.." />
That means if I specify the ID of the selection as reference_id.
Remark: In XMLmind 3.2 we used <command name="include"
parameter="replace[useXInclude] %_" />
What is wrong here? Can you help me?
Best regards
Peter Schulte
GAD eG - IT f?r Banken
GAD-Stra?e 2-6
48163 M?nster
www.gad.de
Vorstand : Anno Lederer (Vors.), Dr. Elmar Pritsch (stv. Vors.), J?rg
Dreinh?fer, Friedhelm Wagner
Aufsichtsratsvorsitzender: Wilfried Guttmann
Sitz: M?nster/Westf., Amtsgericht M?nster, Genossenschafts-Register 337
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20081205/86d726b9/attachment.htm