Re: [xsl] Determining if an element exists within any tag of a specified name...

Subject: Re: [xsl] Determining if an element exists within any tag of a specified name...
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 06 Jun 2002 22:26:18 +0200
<xsl:if test="current()[../*/attrtype[. != '')]">

can be shortened to <xsl:if test="../*/attrtype != ''">.


But maybe you can shorten the complete code as I did it.

<xsl:if test="current()[not(end())]">, </xsl:if>

<xsl:if test="position() != last()">, </xsl:if>


should do the job.

Regards,

Joerg


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread