On Tuesday 17 October 2006 17:36, Sam Carleton wrote:
<xsl:attribute name="revision">
<xsl:if test="not(string(@revision)) = false()">
<xsl:value-of select="@revision"/>
</xsl:if>
<xsl:if test="not(string(@revision))">
<xsl:text>0</xsl:text>
</xsl:if>
</xsl:attribute>
What about:
<xsl:attribute name="revision">
<xsl:if test="@revision != ''">
<xsl:value-of select="@revision"/>
</xsl:if>
<xsl:if test="not(@revision)">
<xsl:text>0</xsl:text>
</xsl:if>
</xsl:attribute>
Sometimes a <xsl:choose> is easier.
Richard
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
Sonic Arts Research Archive
http://www.sara.uea.ac.uk/
JID: ironchicken(_at_)jabber(_dot_)earth(_dot_)li
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--