compact xml (and xsl) support
Posted: Mon Jul 23, 2007 9:36 am
http://nxg.me.uk/dist/lx/
Compact XSL (http://www.zanthan.com/ajm/xsltxt/):
instead of
[/code]
Compact XSL (http://www.zanthan.com/ajm/xsltxt/):
Code: Select all
choose
when .test "$count > 1"
call "by-columns" ("column-count":"$count")
otherwise
<para>
"No columns"
Code: Select all
<xsl:choose>
<xsl:when test="$count > 1">
<xsl:call-template name="by-columns">
<xsl:with-param name="column-count" select="$count"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<para>
<text>No columns</text>
</para>
<xsl:otherwise>
</xsl:choose>