Subject: Re: [xsl] template match syntax - possible bug in MSXML XPath From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Sat, 22 Sep 2001 01:09:58 -0700 |
<xsl:template match="(xsl:transform|xsl:stylesheet)/@version">
1) MSXML's XSLT engine executes it, reporting no error (and printing "1.0" when applied to an XSLT source).
2) Both Saxon and Xalan report errors when parsing the second template (Saxon: Error in expression (xsl:transform|xsl:stylesheet)/@version: Unexpected token in pattern, found "(").
Now I realize that if Saxon (and Xalan) complain, they are probably right.
So:
a) Is this a conformance bug in Microsoft's implementation?
b) What's the most compact way to write the match in a syntax which is actually allowed in XPath?
-Chris -- Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc. DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training <URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ > PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] template match syntax - possi, Julian Reschke | Thread | RE: [xsl] template match syntax - p, Julian Reschke |
[xsl] template match syntax - possi, Julian Reschke | Date | Re: [xsl] template match syntax - p, David Carlisle |
Month |