|
|
|
An application document john_doe.xml:
<card type="simple"> <name>John Doe</name> <title>CEO, Widget Inc.</title> <email>john.doe@widget.com</email> <phone>(202) 456-1414</phone> </card> |
The main part of the DSD document business_card.dsd:
<DSD IDRef="card" DSDVersion="1.0">
<Title> This is a DSD for XML business cards </Title>
<ElementDef ID="card">
<AttributeDecl Name="type" Optional="yes">
<Union><String Value="simple"/><String Value="complex"/></Union>
</AttributeDecl>
<Element Name="name"><StringType/></Element>
<If><Attribute Name="type" Value="simple"/>
<Then> ... </Then>
</If>
...
</ElementDef>
...
</DSD>
|