XML-STX
view release on metacpan or search on metacpan
test/cdata-group1.stx view on Meta::CPAN
<stx:transform version="1.0"
xmlns:stx="http://stx.sourceforge.net/2002/ns"
recognize-cdata="no"
strip-space="yes">
<stx:group recognize-cdata="yes">
<stx:template match="root" public="yes">
<stx:process-children/>
</stx:template>
<stx:template match="text()[name(..)='root']">
[<stx:copy/>]
</stx:template>
</stx:group>
</stx:transform>
( run in 0.869 second using v1.01-cache-2.11-cpan-39bf76dae61 )