This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Determining if an element exists within any tag of a specifiedname...


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]