You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stephan Michels <st...@vern.chem.tu-berlin.de> on 2002/01/25 11:38:10 UTC
FragmentExtractorTransformer
Hi,
I would like to ask, if you could write the Extractor more flexible. I
need a transformer like the FragmentExtractorTransformer for my
project(http://sourceforge.net/projects/jeuclid/). I had also ask
the Author of this class, but got no answer.
I suggestion is like this:
sitemap.xmap:
<map:transformer name="extractor"
src="org.apache.cocoon.transformation.FragmentExtractorTransformer"/>
<extract-uri>http://www.w3.org/2000/svg</extract-uri>
<extract-element>svg</extract-element>
</map:transformer>
<map:transformer name="mml-extractor"
src="org.apache.cocoon.transformation.FragmentExtractorTransformer">
<extract-uri>http://www.w3.org/1998/Math/MathML</extract-uri>
<extract-element>math</extract-element>
</map:transformer>
I have attached a patch file for this.
Thank you, Stephan Michels.