OK, now that I am dumping output I can see why I am failing. I'm
returning the parsed doc; there are clearly other errors too, which is
what the test should be catching, but I havent got that far.
Jun,
is it only the cdl:cdl/cdl:system element that I should be returning
from a resolve operation?
In:test Resource
test/cdl/valid/normative/resolution/cddlm-cdl-2005-01-0001.xml
<?xml version="1.0" encoding="UTF-8"?>
http://www.gridforum.org/namespaces/2005/02/cddlm/CDL-1.0">
cdl:configuration
<WebServer>
<hostname>localhost</hostname>
<port>80</port>
</WebServer>
cdl:system
<MyServer cdl:extends="WebServer">
<hostname>www.cddlm.org</hostname>
</MyServer>
expected:
<?xml version="1.0" encoding="UTF-8"?>
<MyServer>
<hostname>www.cddlm.org</hostname>
<port>80</port>
</MyServer>
actual:
<?xml version="1.0" encoding="UTF-8"?>
http://www.gridforum.org/namespaces/2005/02/cddlm/CDL-1.0">
<configuration
xmlns="http://www.gridforum.org/namespaces/2005/02/cddlm/CDL-1.0">
<WebServer xmlns=""><hostname/><port/></WebServer>
</configuration>
<system
xmlns="http://www.gridforum.org/namespaces/2005/02/cddlm/CDL-1.0">
<MyServer xmlns="">
<hostname>localhost</hostname>
<port>80</port>
<hostname>www.cddlm.org</hostname>
</MyServer>
</system>