Hi,
This is a lab given in Rogers ppt on XML schema. Its lab no. 6.
Current XSD contains the following.
XML source file structure is:
The question is to separate the <description> and <warranty> element in the XSD to a new type called "appliance" and then use that to derive (by extension) another new type called "juicerappliance". Finally declare the <juicer> element to be of type "juicerappliance".
Now, the problem I having is
how do we use "derive by extension" for elements that are present in the middle of the sequence. The answer given in the lab also seems to be not working fine. I have seen examples where "derive by extension" is used to extend the type by appending elements to it..but not in the middle of the sequence.
If you have Rogers's labs, you can try lab 6 to see if it works for you in XMLSPY and let me know. I am trying to see if I am doing something wrong. Please help.
Thanks,
Hari.
[ February 09, 2003: Message edited by: Hariharan Raman ]