[cddlm] CDL tests

Steve Loughran steve_loughran at hpl.hp.com
Thu Dec 1 11:21:43 CST 2005


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"?>
<cdl:cdl 
xmlns:cdl="http://www.gridforum.org/namespaces/2005/02/cddlm/CDL-1.0">
           <cdl:configuration>
             <WebServer>
               <hostname>localhost</hostname>
               <port>80</port>
             </WebServer>
           </cdl:configuration>
           <cdl:system>
             <MyServer cdl:extends="WebServer">
               <hostname>www.cddlm.org</hostname>
             </MyServer>
           </cdl:system>
         </cdl:cdl>

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"?>
<cdl:cdl 
xmlns:cdl="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>
         </cdl:cdl>





More information about the cddlm-wg mailing list