
Jun Tatemura wrote:
Hi, A notable misunderstanding in the test case is on a use of cdl:refroot in cdl:system. (or on semantics of cdl:system).
that's my misunderstanding. thank you for correcting it.
I would like to note that cdl:system is a toplevel property list (just like a child element of cdl:configuration). Thus, we cannot refer to a child element of cdl:system using cdl:refroot (or cdl:extends either). In cddlm-cdl-2005-02-0005.xml (and similarly, cddlm-cdl-2005-02-0006.xml),
<cdl:system> <app> <hostname>localhost</hostname> <database cdl:ref="/hostname"/> <user cdl:ref="." cdl:refroot="toplevel"></user> </app> <toplevel>username</toplevel> </cdl:system>
cdl:refroot is trying to find a toplevel property list (defined in cdl:configuration), not a child element of cdl:system.
The correct test pattern should be:
<cdl:system> <app> <hostname>localhost</hostname> <database cdl:ref="/app/hostname"/> <user cdl:ref="/toplevel"></user> </app> <toplevel>username</toplevel> </cdl:system>
I have updated the test case in CVS.
Ok. That makes a lot of sense. I've got my code working with the new tests, though I think many more tests would be welcome, to test all aspects of the operation.