To: Jing
Subject: inheritance in XML schemas
Cc: Huichan
Hi Jing and Huichan:
Huichan: please can you verify that your commercial XML parser
accepts the exp and basket example by Prasenjit.
For Jing:
To add inheritance to XML schemas, see:
/proj/adaptive3/lieber/com3360-2000/JSR31-2001/exp and basket
You need to add Extension to the cd:
-- Karl
=================
Cdcheck for XML schemas
1.
Take /proj/adaptive3/lieber/com3360-2000/JSR31-2001/XML2AP.cd
and cut it down to managable size that only involves the
equivalent of construction and repetition classes.
The schema should be able to express
po.xsd
2.
Solve the "Report used, but not defined" problem
for those XML schemas.
Interesting questions:
how much have the traversal specifications to change
when you go from class dictionaries to XML schemas.
Is their any change to the Java code needed (except
class name subst. and traversal spec. changes)
Note:
For finding definitions:
ComplexType = "<" [ NSRef ] "complexType"
List(AttrValue)
So the
name of a defined type is in attrs that must be searched
for an entry "name".
For finding uses:
We need Java code to find all uses.