Just spotted this; i assume you have figured it out by now so i just
want to reply for future ref.
António Mota wrote:
var nodes = xmlSchema.selectNodes("//xs:element");
after declaring
Sarissa.setXpathNamespaces(xmlSchema,
'xmlns:xs="http://www.w3.org/2001/XMLSchema"');
If you check the docs, you'll see setXpathNamespaces should only be used
for binding a URI to the default namespace (there is no other way to do
it AFAIK). You should be following the howto from [1] instead:
xmlSchema.setProperty("SelectionLanguage", "XPath");
xmlSchema.setProperty("SelectionNamespaces",
'xmlns:xs="http://www.w3.org/2001/XMLSchema"');
var nodes = xmlSchema.selectNodes("//xs:element");
All this follows IEs API design, which sarissa emulates for browsers
able to do DOM L3 XPath. It would be ideal if sarissa emulated DOMI L3
for IE instead, but i cant find time to look into it.
[1] http://sarissa.sourceforge.net/doc/overview-summary.html#xpath
cheers,
Manos
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--