The Sling Rewriter is an Apache Sling module included in AEM that performs transformations on rendered content like HTML. It uses a pipeline-oriented approach based on SAX events to apply transformers without knowledge of specific components. The document discusses how rewriter pipelines are configured and customized transformers can be implemented to transform content according to use cases.
#10 It is actually possible to name these nodes component-type dash index. It would be better to avoid this as it is a little error prone, but in the edge case where you use the same transformer multiple times but with different configurations, you’d need to use this.
#12 The reason this is a bad idea is that these transformers are hard to control – they always execute and they always execute before or after any transfomers defined in the pipeline configuration, based on a positive or negative service ranking.