This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Identity Transform and Default Templates, I think...
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 19 Jun 2002 10:32:01 +0200
- Subject: Re: [xsl] Identity Transform and Default Templates, I think...
- References: <63C4AD0365821F4291ACF76C0672FA3506EEA6@piper6.piper-group.int>
- Reply-to: xsl-list at lists dot mulberrytech dot com
The only way around producing id="" (if node is empty/not there) is to
use:
<node>
<xsl:if test="node">
<xsl:attribute name="id">
<xsl:value-of select="node"/>
</xsl:attribute>
</xsl:if>
</node>
cheers
andrew
Hi Andrew,
may I be pedantic ;-)
<xsl:if test="normalize-space(node)">
Regards,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list