[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Determining if an element exists within any tag of a specifiedname...
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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member