Project

Profile

Help

Bug #5849 » simple.xsl

Daniel Haley, 2023-01-23 18:44

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" expand-text="yes">
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:mode on-no-match="shallow-copy"/>
<xsl:template match="/*">
<xsl:copy>
<xsl:attribute name="processed" select="let $tokens := tokenize(@processed)
return string-join(($tokens,count($tokens)+1),' ')"/>
<xsl:apply-templates select="@* except @processed|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
(1-1/3)