> From: Ricardo Trindade [mailto:[EMAIL PROTECTED]]
> 
> 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>

Empty uri might work.

>
<extract-element>page/content/rowset/row/image</extract-element>

It says *element*, not *xpath*. IIRC, FragmentExtractor does not support
xpath.

Vadim

>       </map:transformer>
> 
> is this the way it's done ?
> 
>       I don't want to specify a namespace, since the tag produced by
the sql
> transformer doesn't include a namespace.
> 
>       I think this transformer is very usefull (if I understand it
right)
> whenever there is a need to manipulate binary info inside the XML,
it's a
> pitty that it's not documented yet.
> 
> Thanks.
> Ricardo Trindade


---------------------------------------------------------------------
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]>

Reply via email to