Re: [xsl] Identity Transform and Default Templates, I think...

Subject: Re: [xsl] Identity Transform and Default Templates, I think...
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 19 Jun 2002 10:32:01 +0200

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



Current Thread