SlideShare a Scribd company logo
1 of 20
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
 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
Example
Stylus Studio – Getting Started
Stylus Studio
Stylus Studio
Click on this to create New
Element Definition Click on this to create New
Complex Type Element
Stylus Studio – Creating Table Using
Complex Type Element
Stylus Studio
Right Click on this to add sequence type to
Complex Type Element
Stylus Studio – Adding sub-elements to
Complex Type Element
Right Click on this to add Element Definition
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.
Stylus Studio
Click here to get Tree View of the Schema.
Stylus Studio – Tree View of XML
schema
Stylus Studio – Adding xsd:keys,
xsd:keyref to Element Definition
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
Assign a name for the new
key identity
Stylus Studio – Adding selector element
Click on the ID button
to add new selector
After adding new selector, You can select the Selector/field
from drop-down menu
Adding xsd:keys, xsd:keyref to Element
Definition
Assign a name for the new
keyref
Provide the name of
primary key to which it
refers
Stylus Studio – Adding XPath
Expression
Adding Xpath expression
in this place
Click on this to view actual code for XML
Schema
Stylus Studio
Click on this to Indent
XML tags
Click on this to validate
the XML Schema
Thank You
Any Questions?

More Related Content

Similar to Xml stylus studio

RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptxRANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
Out Cast
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel training
Mohamed Hassan
 

Similar to Xml stylus studio (20)

SCDJWS 1. xml schema
SCDJWS 1. xml schemaSCDJWS 1. xml schema
SCDJWS 1. xml schema
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-II
 
Spss course session-II
Spss course session-IISpss course session-II
Spss course session-II
 
Making WorkFlows XML Report Output Work For You
Making WorkFlows XML Report Output Work For YouMaking WorkFlows XML Report Output Work For You
Making WorkFlows XML Report Output Work For You
 
SPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptxSPSS PRESENTATION.PPT.pptx
SPSS PRESENTATION.PPT.pptx
 
003.query
003.query003.query
003.query
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Xml and Co.
Xml and Co.Xml and Co.
Xml and Co.
 
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptxRANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
 
Microsoft excel training
Microsoft excel trainingMicrosoft excel training
Microsoft excel training
 
Using The Master Genealogist ― Advanced
Using The Master Genealogist ― AdvancedUsing The Master Genealogist ― Advanced
Using The Master Genealogist ― Advanced
 
Learning XSLT
Learning XSLTLearning XSLT
Learning XSLT
 
Creating web form(For College Seminars)
Creating web form(For College Seminars)Creating web form(For College Seminars)
Creating web form(For College Seminars)
 
An introduction to spss
An introduction to spssAn introduction to spss
An introduction to spss
 
Software packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSSSoftware packages for statistical analysis - SPSS
Software packages for statistical analysis - SPSS
 
Xsd
XsdXsd
Xsd
 
Xsd
XsdXsd
Xsd
 
XML schemas
XML schemasXML schemas
XML schemas
 
distributed system concerned lab sessions
distributed system concerned lab sessionsdistributed system concerned lab sessions
distributed system concerned lab sessions
 
Xml part4
Xml part4Xml part4
Xml part4
 

More from Harry Potter

How to build a rest api.pptx
How to build a rest api.pptxHow to build a rest api.pptx
How to build a rest api.pptx
Harry Potter
 
Business analytics and data mining
Business analytics and data miningBusiness analytics and data mining
Business analytics and data mining
Harry Potter
 
Big picture of data mining
Big picture of data miningBig picture of data mining
Big picture of data mining
Harry Potter
 
Data mining and knowledge discovery
Data mining and knowledge discoveryData mining and knowledge discovery
Data mining and knowledge discovery
Harry Potter
 
Directory based cache coherence
Directory based cache coherenceDirectory based cache coherence
Directory based cache coherence
Harry Potter
 
How analysis services caching works
How analysis services caching worksHow analysis services caching works
How analysis services caching works
Harry Potter
 
Optimizing shared caches in chip multiprocessors
Optimizing shared caches in chip multiprocessorsOptimizing shared caches in chip multiprocessors
Optimizing shared caches in chip multiprocessors
Harry Potter
 
Hardware managed cache
Hardware managed cacheHardware managed cache
Hardware managed cache
Harry Potter
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
Harry Potter
 
Concurrency with java
Concurrency with javaConcurrency with java
Concurrency with java
Harry Potter
 
Encapsulation anonymous class
Encapsulation anonymous classEncapsulation anonymous class
Encapsulation anonymous class
Harry Potter
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
Harry Potter
 
Rest api to integrate with your site
Rest api to integrate with your siteRest api to integrate with your site
Rest api to integrate with your site
Harry Potter
 

More from Harry Potter (20)

How to build a rest api.pptx
How to build a rest api.pptxHow to build a rest api.pptx
How to build a rest api.pptx
 
Business analytics and data mining
Business analytics and data miningBusiness analytics and data mining
Business analytics and data mining
 
Big picture of data mining
Big picture of data miningBig picture of data mining
Big picture of data mining
 
Data mining and knowledge discovery
Data mining and knowledge discoveryData mining and knowledge discovery
Data mining and knowledge discovery
 
Cache recap
Cache recapCache recap
Cache recap
 
Directory based cache coherence
Directory based cache coherenceDirectory based cache coherence
Directory based cache coherence
 
How analysis services caching works
How analysis services caching worksHow analysis services caching works
How analysis services caching works
 
Optimizing shared caches in chip multiprocessors
Optimizing shared caches in chip multiprocessorsOptimizing shared caches in chip multiprocessors
Optimizing shared caches in chip multiprocessors
 
Hardware managed cache
Hardware managed cacheHardware managed cache
Hardware managed cache
 
Smm & caching
Smm & cachingSmm & caching
Smm & caching
 
Data structures and algorithms
Data structures and algorithmsData structures and algorithms
Data structures and algorithms
 
Abstract data types
Abstract data typesAbstract data types
Abstract data types
 
Abstraction file
Abstraction fileAbstraction file
Abstraction file
 
Object model
Object modelObject model
Object model
 
Concurrency with java
Concurrency with javaConcurrency with java
Concurrency with java
 
Encapsulation anonymous class
Encapsulation anonymous classEncapsulation anonymous class
Encapsulation anonymous class
 
Abstract class
Abstract classAbstract class
Abstract class
 
Object oriented analysis
Object oriented analysisObject oriented analysis
Object oriented analysis
 
Api crash
Api crashApi crash
Api crash
 
Rest api to integrate with your site
Rest api to integrate with your siteRest api to integrate with your site
Rest api to integrate with your site
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Xml stylus studio

  • 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
  • 5. Stylus Studio – Getting Started
  • 7. Stylus Studio Click on this to create New Element Definition Click on this to create New Complex Type Element
  • 8. Stylus Studio – Creating Table Using Complex Type Element
  • 9. Stylus Studio Right Click on this to add sequence type to Complex Type Element
  • 10. Stylus Studio – Adding sub-elements to Complex Type Element Right Click on this to add Element Definition to Complex Type Element
  • 11. Stylus Studio – Adding data type for Element Definition Click on this to get drop down menu to select the data type.
  • 12. Stylus Studio Click here to get Tree View of the Schema.
  • 13. Stylus Studio – Tree View of XML schema
  • 14. Stylus Studio – Adding xsd:keys, xsd:keyref to Element Definition 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
  • 15. Stylus Studio - Adding xsd:keys, xsd:keyref to Element Definition Assign a name for the new key identity
  • 16. Stylus Studio – Adding selector element Click on the ID button to add new selector After adding new selector, You can select the Selector/field from drop-down menu
  • 17. Adding xsd:keys, xsd:keyref to Element Definition Assign a name for the new keyref Provide the name of primary key to which it refers
  • 18. Stylus Studio – Adding XPath Expression Adding Xpath expression in this place Click on this to view actual code for XML Schema
  • 19. Stylus Studio Click on this to Indent XML tags Click on this to validate the XML Schema