|
From: Dejan K. <dej...@ya...> - 2003-04-25 17:01:29
|
When using complex option types like option XPath in
XpathPipelineStage you should have:
xpath1.XPath.acfid=/userid/....
instead of
xpath1.acfif=/user/....
Dejan
--- ek...@ba... wrote:
> 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.
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
|