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]

RE: [xsl] Variable in template atrribute "match" with Xalan and MSXML


Subject: RE: [xsl] Variable in template atrribute "match" with Xalan and MSXML
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sat, 16 Mar 2002 09:46:48 -0000

> I have to work with Xalan and MSXML4.
>
> I have such xsl style:
>
>
> <xsl:param name="pMenuItemID"/>
> ...
> <xsl:template match="id($pMenuItemID)">
> ...
>   <xsl:value-of select="@caption"/>
> ...
> </xsl:template>
> ...
>
>
> It works excelent with Xalan but it doesn't work with MSXML4.
> I get: "id($pMenuItemID)' is an invalid XPath expression."
>
A match pattern in xsl:template is not allowed to contain a variable
reference. MSXML4 is right to reject it, though it seems to be a very odd
error message to produce.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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