Re: [xsl] Choosing based on current node

Subject: Re: [xsl] Choosing based on current node
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Mon, 12 Feb 2007 17:48:07 +0100
Mukul Gandhi wrote:

But I think, your code fragment needs to be modified as:


<xsl:for-each select="A|B|C">
<xsl:choose>
<xsl:when test="self::A">

Ah, thanks, you are right Mukul, I gave the wrong advice on that one.


But I stick to my advice on using matching templates instead of an equivalent set of call-templates combined with your own big switch-equivalent statement. Much too much work... and ain't we all programmer's and ain't good programmers lazy programmers? ;-)

-- Abel

Current Thread