[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: (2 xpath questions)
----- Original Message ----- From: "John E. Simpson" <simpson@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxx> Sent: Monday, September 25, 2000 3:52 PM Subject: Re: (2 xpath questions) > At 02:02 PM 09/25/2000 +0200, Taras Tielkes wrote: > >When I query the doc root node for "file://", the parser will report that it is > >an "Incomplete XPath statement". > >The current MSXML beta has some bugs, but the only missing XPath feature > >listed is the namespace axis. > > The XPath spec says of the // abbreviated syntax: > > // is short for /descendant-or-self::node()/ > > Perhaps that explains why a plain // doesn't work. It lacks a node test > following the second slash. The slash is just a delimiter *between* > portions of the location path, a sort of conjunction which says "and > *then*..." -- it's not a, umm, location step in its own right. The long form, "/descendant-of-self::node()" will work in MSXML, again using the XPath DOM querying methods. As far as I understand, "//" would be the short form of this. I've printed out the XPath spec today and will read it. Regards, Taras 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
|