Hi all,

I'm new of Apache Sling, and I'm interested in the output rewriting
pipeline. What I want to achieve, within my html page, is to move certain
nodes (stylesheets and javascript) from the middle of the HTML document to
the <head> element.

The document is generated by a CMS, so I cannot control in advance where
stylesheets and scripts will be inserted.

Can this task be achieved using a Transformer? I suppose that I can do this
on the endDocument event, but I don't know how to flow through the entire
page to move nodes.

Thanks in advance,
Omar

-- 
Omar Crea

Mobile: +39 3926192511
Email: omar.c...@thyme.it
Skype: omarc.work

Thyme S.r.l.
Sede operativa:
Laboratorio Innovazione Breda
Via Venezia 23
20099 Sesto San Giovanni (MI)

Sede legale:
Via Fiordaliso 36
20095 Cusano Milanino (MI)

P.IVA 06416960968

Reply via email to