|
Subject: Re: [xsl] XSLT 2: Best Way to Synthesize Elements Given List of Tagnames From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 5 Nov 2016 17:10:10 -0000 |
I'd suggest this non-recursive solution:
<xsl:template match="*">
...
<xsl:apply-templates select="*"/>
...
</xsl:template> <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>
-- 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@xxxxxxxxxxxxxxxxxxxx | Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts | Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSLT 2: Best Way to Synth, Dimitre Novatchev dn | Thread | Re: [xsl] XSLT 2: Best Way to Synth, Dimitre Novatchev dn |
| Re: [xsl] XSLT 2: Best Way to Synth, Dimitre Novatchev dn | Date | Re: [xsl] XSLT 2: Best Way to Synth, Eliot Kimber ekimber |
| Month |