David Thanks for pointing out my error ...
EJP -----Original Message----- From: David N Bertoni/Cambridge/IBM [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 October 2002 11:47 AM To: [EMAIL PROTECTED] Subject: RE: SimpleXpathAPI and //. expression Hi Esmond, Your email has this: (//. | //@* | //namespace::*)[not(self:comment())] Did you mean: (//. | //@* | //namespace::*)[not(self::comment())] "self:comment" is different from "self::comment". The later works, the former doesn't. Perhaps I can enhance SimpleXPathAPI to produce more useful error messages than it does. If I put your expression into a stylesheet and run it, I get: XPathParserException: Unable to resolve prefix 'self'. pattern = '(//. | //@* | //namespace::*)[not(self:comment())]'(test1.xsl, 6, 79) Remaining tokens: ('(' '/' '/' '.' '|' '/' '/' '@' '*' '|' '/' '/' 'namespace' '::' '*' ')' '[' 'not' '(') (test1.xsl, line 6, column 79) Dave "Pitt, Esmond" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: David N Bertoni/Cambridge/IBM) 10/09/2002 06:23 Subject: RE: SimpleXpathAPI and //. expression PM Please respond to xalan-dev Thanks, quick work! The complete expression I need is: (//. | //@* | //namespace::*)[not(self:comment())] The 'not' part doesn't seem to work either. TIA EJP -----Original Message----- From: David N Bertoni/Cambridge/IBM [mailto:[EMAIL PROTECTED]] Sent: Thursday, 10 October 2002 2:51 AM To: [EMAIL PROTECTED] Subject: Re: SimpleXpathAPI and //. expression Just checked in a fix... Dave David N Bertoni/Cambridge To: [EMAIL PROTECTED] /IBM cc: (bcc: David N Bertoni/Cambridge/IBM) <david_n_bertoni@ Subject: Re: SimpleXpathAPI and //. expression us.ibm.com> 10/09/2002 08:54 AM Please respond to xalan-dev Yes "//." is equivalent to "//self::node(). I don't have a problem with self::node() using 1.4. Are you sure it doesn't work? //. definitely doesn't work, so I'll take a look and see what's going on. Dave "Pitt, Esmond" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: (bcc: David N Bertoni/Cambridge/IBM) 10/08/2002 10:37 Subject: SimpleXpathAPI and //. expression PM Please respond to xalan-dev The Xalan 1.4 SimpleXPathAPI.exe doesn't appear to accept the XPath expressions //. or //self:node() as its 3rd parameter (throwing a XalanParserException). These are equivalent, and one or the other is required to support XML-DSIG. Or am I dreaming? TIA EJP
