xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] simple choose : when problem


Subject: [xsl] simple choose : when problem
From: Jo Kong HO <JoK@xxxxxxxxxxxxxx>
Date: Sun, 11 Feb 2001 16:36:07 -0000

Hi all

This is another choose:when problem.  Just to test the validity of my
choose:when I written the following xslt segment.
I would expect the output of this segment be MileMay. But to my surprise its
M3.

<xsl:variable name='unit' select="mm"/>
<xsl:choose>
	<xsl:when test="$unit='mm'">
		MileMay
	</xsl:when>
	<xsl:when test="$unit='cm'">
		Count Mile
	</xsl:when>
	<xsl:otherwise>M3</xsl:otherwise>
</xsl:choose>

What have I done wrong here?

rgds
joe

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor