Serge Emantayev wrote:
HiMy XML documents have a schema and a default namespace like: <?xml version="1.0"?> <emp_list xmlns:myns="http://www.test.com" xmlns="http://www.test.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.test.com emp_list.xsd"> <employee xsi:type="emp_list.employee"> <id>10</id> ... To compose an XPath expression I need to prefix each tag with 'myns': /myns:emp_list/myns:employee[myns:id=10]/myns:nameIs there a way to specify a default namespace for Xalan like I do it for Xerces?
No, XPath 1.0 does not support a default namespace for path expressions. Dave
