This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Variable in template atrribute "match" with Xalan and MSXML
- From: "Dion Houston" <dionh at microsoft dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 14 Mar 2002 14:22:02 -0800
- Subject: RE: [xsl] Variable in template atrribute "match" with Xalan and MSXML
- Reply-to: xsl-list at lists dot mulberrytech dot com
According to Kay (XSLT Programmer's Reference 2nd Edition; page 445),
id() when used in a match expression is an IdKeyPattern, and takes a
literal. Assuming this comes from the spec, a variable name is not a
legal value in this case.
Dion
-----Original Message-----
From: Andrey Astakhov [mailto:paranorm@yandex.ru]
Sent: Thursday, March 14, 2002 1:42 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] Variable in template atrribute "match" with Xalan and
MSXML
Hallo, All!
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."
Why so?
Best regards,
Andrey
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list