|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Variable in template atrribute "match" with Xalan
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








