Heelo,

> > I wanted to explain thi situation:
> > I have a file called example.xml and I want to apply a XPATH  
> > expression in order to obtain another file called example-2.xml  
> > with the elements selected by the XPATH expression.
> >
> >> For one you could just generate your file, apply an xslt with
> >> an xpath expression or otherwise use the Xquery generator[1].
> >
> > Thanks for the suggestions. I wonder if there is one transformer  
> > where you indicate the file and the XPATH expression and gives you  
> > the new xml file.
> >
> > Did I explain myself better? Sorry for my awful English :S
> >
> Did you literally mean that you want to produce another XML file in  
> the filesystem ?
> ( which, I guess, is why Reinhard suggests using the sourcewriting  
> transformer )
> Or did you just want to extract that xml fragment and transform 
> +serialize it in the pipeline?

I am wondering if it is possible the second option in Cocoon,

Carlos Tejo

 
> -- Steve Majewski
> 
> 
> >
> > On Apr 14, 2008, at 12:26 PM, Reinhard Haller wrote:
> >>
> >> Hi Carlos,
> >>
> >> Carlos Tejo Alonso schrieb:
> >>> Thanks for the suggestions. I wonder if there is one transformer  
> >>> where you indicate the file and the XPATH expression and gives  
> >>> you the new xml file.
> >>>
> >> try it with a xpath generator (you can specify your file directly  
> >> or via pattern matching), followed by a source-writing-transform.
> >>
> >> http://cocoon.apache.org/2.1/userdocs/xpathdirectory-generator.html
> >>
> >> 
> http://cocoon.apache.org/2.1/userdocs/sourcewriting-transformer.html
> >>

Carlos Tejo Alonso
Departamento de I+D+i - Fundación CTIC
Parque Científico Tecnológico Gijón, Asturias (Spain)
www.fundacionctic.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to