W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

Calabash, pass in the stylesheet path on command line?

From: Steve Whitlatch <steve@swhitlat.phxcoxmail.com>
Date: Wed, 4 Feb 2009 00:22:03 -0700
To: xproc-dev@w3.org
Message-Id: <200902040022.04021.steve@swhitlat.phxcoxmail.com>

How might I pass to Calabash a stylesheet path value to be used in a 
<p:xslt> step? 

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:input port="parameters" kind="parameter"/>
   <p:input port="stylesheet">
     <p:document href="unknown"/>

I want to make the <p:xslt> step use an XSL file located at a path value  
passed in on the command line. 

The problem I am trying to solve is that my web app cannot know the name 
of an uploaded DocBook customization layer until it receives the 
request. Once it has the request, it appropriately builds the command 
line used to call Calabash.
An example of what I would like to do, would be something like: 

../runcalabash.sh -i source=xmlFile.xml \
-o result=foFile.fo \
-XXX stylesheet=cust_layer.xsl
simple_pipe.xpl.xml \

And the the cust_layer.xsl file would be used by the <p:xslt> step. Any 
hope for this?

The web app accepts DocBook XML projects and returns formatted output.


Steve Whitlatch
Received on Wednesday, 4 February 2009 15:48:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC