2014-01-07 181 views
0

我需要從orbeon運行水壺(ktr)文件,或者更具體地從xpl文件運行。我想運行一個批處理文件,但我找不到任何步驟來做到這一點。我怎樣才能從xpl文件內運行批處理/ ktr文件?Orbeon - 運行批處理文件

回答

0

從XPL運行外部命令,你麪包車使用無證oxf:execute-processor,例如(借用XForms Unit):

<p:processor name="oxf:execute-processor"> 
    <p:input name="config" href="#control" transform="oxf:xslt"> 
     <exec executable="/home/vdv/projects/xformsunit/resources/apps/xformsunit/browser-run.sh" 
      xsl:version="2.0"> 
      <arg 
       line=" http://localhost:8080/orbeon/xformsunit/suite/{/*/name}/results?implementation=xsltforms&amp;uid={/*/uid}" 
      /> 
     </exec> 
    </p:input> 
    <p:output name="stdout" id="stdout" debug="stdout"/> 
    <p:output name="stderr" id="stderr" debug="stderr"/> 
    <p:output name="result" id="result" debug="result"/> 
</p:processor> 

AFAIK這款處理器並沒有被記錄在案,但你應該能夠找到更多的例子on the mailing list