Hi,
I am trying to use directory scanner processor in an application to get directory structure as below:
<p:processor name="oxf:directory-scanner">
<p:input name="config">
<config>
<base-directory>C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\orbeon\WEB-INF</base-directory>
<include>*</include>
<case-sensitive>false</case-sensitive>
</config>
</p:input>
<p:output name="data" id="dirOutput" debug="directory"/>
</p:processor>
I am using this processor in a pipeline called from page-flow as shown below:
<page path-info="/AppBuilder" view="AppView.xsl" id="ApplicationBuilder" xforms="AppModel.xml" model="AppModel.xpl">
Here AppModel.xml is a simple xml which contains <selectedApp> and an <action> node. <selectedApp> node contains directory name to be scanned. AppModel.xpl takes this instance as input and scans directory specified in <selectedApp>. the output from directory scanner goes to an xupdate processor which appends the xml generated by directory scanner to instance data and returns to page-flow. AppView.xsl is an XSLT which will display directories. When user selects a directory again on screen this process will happen again.
This is how I want this application to behave but I am facing following problems:
1. How to get the base-directory node from instance data (<selectedApp>)rather than a hard-coded value?
2. It seems like my pipeline AppModel.xpl is not getting executed. Even when I try to write the out put in a file for debugging purpose it doesn't work.
I will very much appreciate if somebody can help me out here or point what I may be doing wrong here?
Thanks & Regards
Abhishek Shrivastava
work: 91-731-2570717 ext 477
cell: 91-98260-11724
email: [EMAIL PROTECTED]
----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------
- Re: [orbeon-user] Directory Scanner Abhishek Shrivastava
- Re: [orbeon-user] Directory Scanner Erik Bruchez
