Hallo,

I have a xsl stylesheet which reads another document using the 
document($filename,/) 
function. .

<xsl:variable name="file" select="document($filename,/)"/>
   <xsl:apply-templates select="$file//@href"/>
...
</xsl>

If I apply this stylesheet directly (from jedit using xalan), it works fine.

But if I call it from xmlmind with a command  (defined in xslMenu.incl)
  <command name="docb.tofileref">
     <process>
       <transform stylesheet="xsl/%{0}" file="%D" to="__fileref.xml" >
         <parameter name="base.dir">%p/</parameter>
       </transform>
       <upload base="%{p}/">
         <copyFile file="__fileref.xml" to="%{R}-fileref.xml" />
       </upload>
     </process>
   </command>

   <command name="docb.listfileref">
     <macro>
       <sequence>
        <command name="docb.tofileref" parameter='"%0"' />
        <command name="XXE.open" parameter="%{p}/%{R}-fileref.xml" />
       </sequence>
     </macro>
   </command>

  <menu>
  ...
    <item label="Listref ..."
          command="docb.listfileref"
         parameter='"listfileref.xsl"' />
  </menu>

the processor can not read the file $filename. Any idea?
BTW: is there a log file where the message output of the transformation?


Holger Hartwig
b+m Informatik AG


Reply via email to