[ https://issues.apache.org/jira/browse/COCOON3-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Chicchiriccò updated COCOON3-54: ------------------------------------------ Comment: was deleted (was: A possible implementation in the attached classes. Once provided a LinkRewriter implementation (i.e. TestRewriter), the transformer can be used in the following way: Map<String, Set<String>> toBeRewritten = new HashMap<String, Set<String>>(); toBeRewritten.put("a", Collections.singleton("href")); toBeRewritten.put("img", Collections.singleton("src")); Pipeline<SAXPipelineComponent> pipeline = new NonCachingPipeline<SAXPipelineComponent>(); pipeline.addComponent(new XMLGenerator(new File("/tmp/file.html"))); pipeline.addComponent(new LinkRewriterTransformer(new TestRewriter(), toBeRewritten)); pipeline.addComponent(serializer); pipeline.setup(System.out); pipeline.execute(); ) > LinkRewriterTransformer > ----------------------- > > Key: COCOON3-54 > URL: https://issues.apache.org/jira/browse/COCOON3-54 > Project: Cocoon 3 > Issue Type: New Feature > Components: cocoon-sax > Reporter: Francesco Chicchiriccò > Assignee: Simone Tripodi > Attachments: cocoon3test.tar.gz, LinkRewriterTransformer.patch > > > A LinkRewriterTransformer (like as the old one for Cocoon 2.1, see [1]) could > be a very nice addendum to Cocoon 3. > It could may even by an idea to have a LinkRewriterTransformer<T>, where T is > the class performing the actual transformation on links. > [1] > http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/LinkRewriterTransformer.html -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira