|
From: <ek...@ba...> - 2003-04-25 16:39:36
|
Can someone tell me why my XML value is not getting into my document from
this?
My data is stored in the database, but the "properties file
representation" of it is:
entryStage=xpath1
xpath1.XPath=acfid
xpath1.acfid=/userid/text()
xpath1.nextStage=script
xpath1.stageType=XpathExtract
script.language=jython
script.nextStage=null
script.scrip=<This is a jython script ... >
script.stageType=Script
Here is the document being fed in:
<?xml version="1.0" encoding="ISO-8859-1"?><userid>ASPALM1</userid>
I put a "println" in XpathExtractPipelineStage.process( ) as follows:
com.babeldoc.core.NameValuePair[] xpaths = this.getOptionList(new
String[]{XPATH});
try {
System.err.println("Number of XPaths = " + (xpaths==null ? 0 :
xpaths.length));
.
.
.
It prints "0" (which means that it's not getting anything back from
getOptionsList( )). I know that the PipelineStage is being executed.
Actually, the Script stage is executed also, but fails because the script
needs the 'acfid'.
Please tell me if I am wrong, but shouldn't this PipelineStage also
implicitly "put" the value into the document so I can later call
${document.get('acfid')} ??
Erik
________________________________________________________________________
The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although The Bank of New York attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. |