xsl-list
[Top] [All Lists]

[xsl] Only child test

2013-10-09 23:39:13
Just curious how other's might approach a test to determine if the
current node is *not* an only child. This works fine but it feels a
little heavy to me.  Thoughts?

                <xsl:if test="(count(preceding-sibling::*) +
count(following-sibling::*)) &gt; 1">
                    <hr/>
                </xsl:if>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>