Subject: RE: Error 80004005 eof - Microsoft XML Parser (September Drop) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 19 Oct 2000 18:27:16 +0100 |
Regards, Wendell
Ben,
You wrote: > Expected token 'eof' found '['. //-->[<-- ancestor::sidebar[1]]
Because of a loophole in the spec, .[ancestor::sidebar[1]] is not a valid XPath expression. The July release allowed this syntax, but for the September release I tightened MSXML's conformance.
Use self::node()[ancestor::sidebar[1]] instead.
~Andy Kimball MSXSL Dev
-----Original Message----- From: Ben Skelton [mailto:Ben_Skelton@xxxxxxxxxxxxx] Sent: Thursday, October 19, 2000 1:56 PM To: XSL-List@xxxxxxxxxxxxxxxx Subject: Error 80004005 eof - Microsoft XML Parser (September Drop)
Hello All,
I am having a problem with the September drop of the Microsoft Parser.
In the stylesheet I have the following code, which works fine with the July build of the parser but not the September build:
<xsl:template match="title"> <xsl:choose> <xsl:when test=".[ancestor::sidebar[1]]"> <xsl:choose> <xsl:when test=".[ancestor::sect4 [1]]"> <h4><xsl:apply-templates /></h4> </xsl:when>
On the September build gives the following error...
msxml3.dll error '80004005'
Expected token 'eof' found '['. //-->[<-- ancestor::sidebar[1]]
/ofleet/default.asp, line 192
I think it is the way I have referenced the current node with the . but don't see a clear way of doing it unless I do something like this:
../title[ancestor::sect4[1]]
Which seems a little clunky to me.
Can anyone please let me know of the correct syntax to use and why this build is specifically choking on this piece of code. It would be great if anyone could give me their experience with the stability of the two builds in a production environment. (Yeah, I know it is Beta code, but still...)
Thanks in advance,
_Ben
--------------------------------- Ben M. Skelton Habanero Studios Limited
604.709.6201 ext. 107 bskelton@xxxxxxxxxxxxx Visit us on the web: http://www.habaneros.com
Come visit us in the Microsoft booth at eWorld. October 24-26, 2000 Vancouver Convention & Exhibition Centre
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Need a Book, Brand_Niemann | Thread | Error 80004005 eof - Microsoft XML , Ben Skelton |
Re: New XSL working draft published, Rick Geimer | Date | Re: xsl:template combined with xt:d, edmund mitchell |
Month |