Xml schema and stylus studio
Download
1 / 20

XML Schema and Stylus Studio - PowerPoint PPT Presentation


  • 126 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' XML Schema and Stylus Studio' - renee-acosta


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Introduction to xml schema
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
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





Stylus studio1

Click on this to create New Element Definition

Click on this to create New Complex Type Element

Stylus Studio




Stylus studio adding sub elements to complex type element

Right Click on this to add Element Definition to Complex Type Element

Stylus Studio – Adding sub-elements to Complex Type Element


Stylus studio adding data type for element definition

Click on this to get drop down menu to select the data type. Type Element

Stylus Studio – Adding data type for Element Definition


Stylus studio3

Click here to get Tree View of the Schema. Type Element

Stylus Studio



Stylus studio adding xsd keys xsd keyref to element definition

Click on the ID button to add new Identity constraint Type Element

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


Stylus studio adding xsd keys xsd keyref to element definition1

Assign a name for the new key identity Type Element

Stylus Studio - Adding xsd:keys, xsd:keyref to Element Definition


Stylus studio adding selector element

Click on the ID button to add new selector Type Element

After adding new selector, You can select the Selector/field from drop-down menu

Stylus Studio – Adding selector element


Adding xsd keys xsd keyref to element definition

Provide the name of primary key to which it refers Type Element

Assign a name for the new keyref

Adding xsd:keys, xsd:keyref to Element Definition


Stylus studio adding xpath expression

Click on this to view actual code for XML Schema Type Element

Adding Xpath expression in this place

Stylus Studio – Adding XPath Expression


Stylus studio4

Click on this to Indent XML tags Type Element

Click on this to validate the XML Schema

Stylus Studio


Thank you
Thank You Type Element

Any Questions?


ad