Expand my Community achievements bar.

SOLVED

Getting TransformerFactory to transform <span elements in CQ5

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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