1 / 20

XML Schema and Stylus Studio

XML Schema and Stylus Studio. Introduction to XML Schema. XML Schema defines building blocks of a XML document XML Schemas are alternative to DTD Why XML Schema? Supports data types Written in XML Supports namespaces Extensible to future additions. XML Schema.

Télécharger la présentation

XML Schema and Stylus Studio

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML Schema and Stylus Studio

  2. Introduction to XML Schema • XML Schema defines building blocks of a XML document • XML Schemas are alternative to DTD • Why XML Schema? • Supports data types • Written in XML • Supports namespaces • Extensible to future additions

  3. XML Schema • Tables in XML schemas are represented by complex elements. • Columns are represented as sub elements of complex elements. • Unique keys are represented by xsd:unique • Primary keys are represented by xsd:key • Foreign keys are represented by xsd:keyref

  4. Example

  5. Stylus Studio – Getting Started

  6. Stylus Studio

  7. Click on this to create New Element Definition Click on this to create New Complex Type Element Stylus Studio

  8. Stylus Studio – Creating Table Using Complex Type Element

  9. Right Click on this to add sequence type to Complex Type Element Stylus Studio

  10. Right Click on this to add Element Definition to Complex Type Element Stylus Studio – Adding sub-elements to Complex Type Element

  11. Click on this to get drop down menu to select the data type. Stylus Studio – Adding data type for Element Definition

  12. Click here to get Tree View of the Schema. Stylus Studio

  13. Stylus Studio – Tree View of XML schema

  14. Click on the ID button to add new Identity constraint After adding an Identity constraint, You can select the constraint type like Unique, key or keyref from drop-down menu Stylus Studio – Adding xsd:keys, xsd:keyref to Element Definition

  15. Assign a name for the new key identity Stylus Studio - Adding xsd:keys, xsd:keyref to Element Definition

  16. Click on the ID button to add new selector After adding new selector, You can select the Selector/field from drop-down menu Stylus Studio – Adding selector element

  17. Provide the name of primary key to which it refers Assign a name for the new keyref Adding xsd:keys, xsd:keyref to Element Definition

  18. Click on this to view actual code for XML Schema Adding Xpath expression in this place Stylus Studio – Adding XPath Expression

  19. Click on this to Indent XML tags Click on this to validate the XML Schema Stylus Studio

  20. Thank You Any Questions?

More Related