OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Nasty XPath expressions

[ Lists Home | Date Index | Thread Index ]

On Thu, Dec 13, 2001 at 02:41:39AM -0800, Kelvin Yeow wrote:
> I wonder what XPath expressions would cause an "XPath processor" to sweat?
> Any "XPath processor" developer out there?

  Of course expressions requiring to browse the full tree are a real
pain from an implementor point of view (or rather an implementor willing to
get decent speed out of the engine).
  But the main problem is IMHO addressing namespaced nodes especially 
when the context don't allow the user to use a QName (like nodes in
the default namespace):

   //*[local-name()="body" and namespace-uri()="http://www.w3.org/1999/xhtml";]

 This is both:
   - horrible to find out and use by users
   - horrible to evaluate at run-time


Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS