* ddailey wrote:
>var c = document.evaluate( "//*[5]", document, null, XPathResult.ANY_TYPE, 
>null );

Here the third paramater is an XPathNSResolver which you specify as null
which implies you cannot use namespace prefixes in your expressions. Use
an actual resolver instead, for example,

  function mynsresolver(prefix) {
    if (prefix == "svg")
      return "http://www.w3.org/2000/svg";;
    return null;
  }

and then

  ...evaluate("//svg:circle", document, mynsresolver, ...

The alternative would be to write your expressions like so:

  *[local-name() = 'circle' and namespace-uri() = 'http://www...' ]
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to