Getting TransformerFactory to transform <span elements in CQ5 | Community
Skip to main content
Peter_Puzanovs
Community Advisor
Community Advisor
October 16, 2015
Solved

Getting TransformerFactory to transform <span elements in CQ5

  • October 16, 2015
  • 1 reply
  • 793 views

Have requirement to change some span's content after page has been generated.

Natural solution for this seems looks like TransformerFactory with a custom transformer.

How to get TransformerFactory to parse <span></span> elements and transform them ? is there a good tutorial or src example ?

Thanks,

Peter

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

Check this example here - https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html. You need to implement your logic in startElement() method. 

1 reply

Kunal_Gaba_
Kunal_Gaba_Accepted solution
October 16, 2015

Check this example here - https://helpx.adobe.com/experience-manager/using/creating-link-rewrite.html. You need to implement your logic in startElement() method.