On Fri, 19 Apr 2002, Ricardo Trindade wrote:
> Hi,
>
> I've searched the docs and lists about this without success, so here goes :
>
> I have a database query (executed with sqltransformer) that returns xml
> with products and embedded image binaries. (they're blobs in the DB)
>
> I want to use the FragmentExtractor to substitute those images embedded in
> the XML with links and generate the .jpeg.
>
> I tried to configure a new transformer "myextractor", similar to fragment
> extractor, but with the changes mentioned in the javadoc :
>
> <map:transformer logger="sitemap.transformer.extractor" name="myextractor"
> src="org.apache.cocoon.transformation.FragmentExtractorTransformer">
> <extract-uri></extract-uri>
> <extract-element>page/content/rowset/row/image</extract-element>
> </map:transformer>
>
> is this the way it's done ?
No, this doesn't work. The FragmentExtractor extracts only elements with
the name in "extract-element". So you can't use a xpath expression.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>