|
Subject: Re: <xsl:variable> behavior From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 11 Nov 1999 10:41:02 -0500 |
<xsl:template match="/"> <xsl:variable name="x"> <xsl:choose> <xsl:when test="false()">X</xsl:when> </xsl:choose> </xsl:variable> <xsl:if test="$x">x</xsl:if> </xsl:template>
This (unexpectedly) prints "x"
<xsl:template match="/">
<xsl:variable name="x">
<xsl:choose>
<xsl:when test="false()">X</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:if test="string($x)">x</xsl:if>
</xsl:template>-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML services, training, libraries, products. Practical Transformation Using XSLT and XPath ISBN 1-894049-02-0 Next instructor-led training: 1999-12-05/06, 1999-12-07, - 2000-02-27/28, 2000-05-11/12, 2000-05-15
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: <xsl:variable> behavior, Phil Lanch | Thread | RE: Sorting and position, Kay Michael |
| RE: illegal character data, Linda van den Brink | Date | Re: XSL working with IE5 and Other , Michele Lee |
| Month |