|
From: <ek...@ba...> - 2003-04-24 21:55:42
|
Also, when/where would I want to use "Options" from the PipelineStage? I guess I need to know the usage, source, and differences between: -- PipelineStage Options -- PipelineStage AdditionalInfo -- PipelineDocument get( ) methods -- PipelineStageResult array from PipelineStage.process( ) method as well as how to get at the information from the input to babeldoc (my XML and specific tags within it, for example) Thanks. Good night. ---------------------- Forwarded by Erik Klein/NY/DOMESTIC/BNY on 04/24/2003 05:50 PM --------------------------- To: bab...@li... cc: Subject: Simple Question This might sound simple to you, but I am trying to do something basic and want to verify. My input to babeldoc is an XML string. I want to be able to reference tags from the XML String from within the stages of the pipeline. One of my PipelineStages is the Script stage (I am using Jython). I want to reference some of the XML tags from within the script but have had no luck using document.get(<tagName>). A few questions: 1. Should I be using the XPath Pipeline Stage to extract the wanted tags and use document.put(<tagName>,<tagValue>) so that my later Script stage can use document.get(<tagName)? 2. If so, where would I find some decent documentation/examples for coding XPath? 3. Should I use the Enrich Pipeline Stage instead? 4. Is there a better way to do this than my above approach? Thanks in advance. ________________________________________________________________________ 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. |