RE: [xsl] <xsl:if> with JavaScript function via <msxsl:script>

Subject: RE: [xsl] <xsl:if> with JavaScript function via <msxsl:script>
From: "Stuart Celarier" <stuart@xxxxxxxxxxx>
Date: Thu, 16 May 2002 22:31:02 -0700
Daryl,

When you moved to MSXML 4.0 you were required to use the
http://www.w3.org/1999/XSL/Transform namespace. This is the namespace
required by the XSLT 1.0 specification. Previous versions of MSXML
supported a Microsoft-specific namespace referred to as the WD-xsl
namespace, so called because it was based on an early Working Draft of
the XSLT specification.

So, for example, XSLT 1.0 has an <xsl:if> element, but that element does
not have an 'expr' attribute. Use the 'test' attribute instead. The
MSXML 4.0 documentation (also available in the MSDN Library) contains
sample code to guide you. 

Don't let these similarities confuse you. WD-xsl is not XSLT 1.0. MSXML
4.0 dropped support for WD-xsl because it is obsolete, and is no longer
supported by Microsoft or this list. This situation is explained in my
article [1] on XSLT in MSXML. There you will also find references to a
conversion utility from Microsoft to convert WD-xsl stylesheets into
XSLT 1.0.

Cheers,
Stuart

[1] http://www.perfectxml.com/articles/xml/XsltInMsxml.asp



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


Current Thread