This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: variable declaration
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] variable declaration
- From: Linda van den Brink <lvdbrink at baan dot nl>
- Date: Mon, 19 Mar 2001 15:55:46 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> my idea is to create a variable:
> <xsl:variable name="niv" select="time_table/enseignement@niveau" />
> and do an xsl:for-each on this variable, but I cannot create
> it with xmlns:xsl="http://www.w3.org/TR/WD-xsl"
> and with xmlns:xsl="http://www.w3.org/1999/XSL/Transform" I cannot
> use xsl:for-each, it has no effect.
>
>
> Do you have some idea of the problem ?
Your problem, like I said, is that you have an old XSL processor (MSXML2
with ie5) which supports an old draft of XSL. If you use the WD-xsl
namespace you can't use variables, if you use
http://www.w3.org/1999/XSL/Transform (the XSLT standard) MSXML2 won't work
because it doesn't know it.
My advice would be to select an up-to-date XSLT processor (e.g. Saxon) and
instruct your students to use that with
http://www.w3.org/1999/XSL/Transform.
Linda
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list