Hello Hussein,

I'm trying to write a process command to produce a few .h files from a single 
XML file. The command itself is very simple:

<command name="dita.toFirmwareHeader">
    <process>
      <copyDocument to="__doc.xml">
        <resources match="^[a-zA-Z][a-zA-Z0-9.+-]*:/.+" />
      </copyDocument>
      <transform 
stylesheet="xsl/pmc_custom/firmware/generate_firmwareheaderfile.xsl" 
file="__doc.xml" to="__doc.h" />
      <upload base="%0">
        <copyFile file="__doc.h" to="%0" />
      </upload>
    </process>
  </command>

  <command name="dita.convertToFirmwareHeader">
    <macro>
      <sequence>
        <command name="XXE.save" parameter="[checkIsSaved]" />
        <command name="selectConvertedFile"
          parameter="saveDirectoryURL" />
        <command name="dita.toFirmwareHeader" parameter='"%_"' />
        <command name="preview" parameter="[lastConverted]" />
      </sequence>
    </macro>
  </command>


The stylesheet is defined as a version 2.0 stylesheet, and page 19 of the 
Configure.pdf manual for my version states that "Child element transform in 
XMLmind XML Editor - Commands invokes the XSLT engine (Saxon 6.5 or Saxon 9 
depending on the version of the XSLT stylesheet)", yet this is the message that 
I get when I try to run the command:

Fatal error: Unknown XSLT element: result-document; SystemID: 
file:/C:/Users/hookerje/AppData/Roaming/XMLmind/XMLEditor5/addon/pmc_dita-2/xsl/pmc_custom/firmware/generate_firmwareheaderfile.xsl;
 Line#: 26; Column#: -1

Result-document is a 2.0 feature that has been in Saxon since 9.2. I've 
replaced the version of saxon9 in XMLmind with my own version to make sure that 
it is compatible, but it makes no difference. Do you have any suggestions about 
what could be the issue?

Regards,
Jeff.


Jeff Hooker
Technical Lead, Technical Communcations
Burnaby Office
P: 604 415 6000 x.2625
C: 778 855 7406

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to