I am using XSLT 2.0 to transform XML to HTML. I am trying to split the attribute value at every 6th character.
My source XML looks like this:
<item effrg="521529577580620621623624628628631631642645" />
My current (failed XSLT) looks like this:
<xsl:analyze-string regex=".{{6}}" select="item/@effrg">
<xsl:matching-substring><xsl:value-of select="."/></xsl:matching-substring>
<xsl:non-matching-substring><xsl:value-of select="."/></xsl:non-matching-substring>
</xsl:analyze-string>
My desired output should be:
521529 577580 620621 623624 628628 631631 642645
Am I on the right track? Can anyone help?