At 2016-11-05 16:50 +0000, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com
wrote:
I'd suggest this non-recursive solution:
Personally, I classify this approach as recursive:
<xsl:template match="*">
...
<xsl:apply-templates select="*"/>
...
</xsl:template>
... as it isn't much different than the following:
<xsl:function name="my:do-children" xmlns:my="urn:X-myFunctions">
<xsl:param name="children" as="element()*"/>
<xsl:for-each select="$children">
...
<xsl:sequence select="my:do-children(*)"/>
...
</xsl:for-each>
</xsl:function>
But that's just me.
. . . . . . . . Ken
--
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK |
Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/s/ |
G Ken Holman _ _ _ _ _ _ _ _ _ _
mailto:gkholman(_at_)CraneSoftwrights(_dot_)com |
Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts |
Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--