[xsl] Is this a legal XPath Expression?

Subject: [xsl] Is this a legal XPath Expression?
From: "Phil Gooch" <phil.gooch@xxxxxxxxx>
Date: Wed, 14 Mar 2001 18:37:36 -0000
Hi there

The <xsl:variable> assignment works fine in MSXML3 but not in Saxon 5.51:

<xsl:template match="TR/TD[15]">
		<xsl:variable name="subject"
		<xsl:if test="$subject !=''">
				<a href="{$subject}.html"><xsl:value-of select="$subject"/></a>

Saxon replies with 'Unexpected token [ beyond end of expression'

If I change the expression to

<xsl:variable name="subject"

it works in Saxon.

I understood that . and node() were equivalent.



Phil Gooch
XML Analyst

CSW Informatics Ltd
4240 Nash Court
Oxford Business Park South,
Oxford, OX4 2RU, UK
Tel: +44/0 1865 337400
Mobile: +44/0 7951 139 845
Fax: +44/0 1865 337433
Web: http://www.csw.co.uk

'Providing innovative document and information management solutions that are
designed to help our customers operate more efficiently, productively and

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

Current Thread