The XML Schema version 1.1 adds a number of new features that really improve the usability of XML Schema standard. These feature include assertions, conditional type assignment, open content, override, default attributes, negative wildcards, substitution for multiple elements and more. This webinar will present an overview of these new XML Schema features, how they work on simple examples and how you can use them from oXygen, so this is a great opportunity to discover what XML Schema 1.1 makes possible as well as how easy it is to develop schemas with oXygen.
1. XML Schema 1.1 Support in
<oXygen/>
Octavian Nadolu
octavian_nadolu@oxygenxml.com
@OctavianNadolu
2. <oXygen/> XML Schema 1.1 Support
XML Schema 1.1
● XML Schema 1.1 superset of XML Schema 1.0
Copyright @ Syncro Soft, 2013. All rights reserved.
3. <oXygen/> XML Schema 1.1 Support
Changes in XML Schema 1.1
● Assertions
<assert test="quantity > 10">
● Conditional type assignment
<alternative test="@country = 'UK'" type="UKAddress">
● Open content
<openContent mode="interleave">
● Override
<override schemaLocation="schema.xsd">
Copyright @ Syncro Soft, 2013. All rights reserved.
4. <oXygen/> XML Schema 1.1 Support
Changes in XML Schema 1.1
● Default attributes
<schema defaultAttributes="myAttrGroup">
● Substitute multiple elements
substitutionGroup="elem1 elem2"
● Negative wildcards
notQName="##defined" notNamespace="##targetNamespace"
● All group
<all>
<any maxOccurs="unbounded"/>
<element ref="elem" maxOccurs="unbounded"/>
</all>
Copyright @ Syncro Soft, 2013. All rights reserved.
5. <oXygen/> XML Schema 1.1 Support
Full Support for XML Schema 1.1
Validation and content completion
Schema Design mode
XML Schema documentation
XML Instance generator
Master Files
Search and Refactoring actions
Copyright @ Syncro Soft, 2013. All rights reserved.
6. <oXygen/> XML Schema 1.1 Support
Demo
● Purchase order schema
Copyright @ Syncro Soft, 2013. All rights reserved.
7. <oXygen/> XML Schema 1.1 Support
Assertions
● The value of the PO higher than 50$
50$
Copyright @ Syncro Soft, 2013. All rights reserved.
8. <oXygen/> XML Schema 1.1 Support
Type alternative
● Addresses specific to each country
UK Address US Address
Name ___________ Name ___________
Street ___________ Street ___________
City ____________ City ____________
Country _________ Country _________
Postcode ________ State ___________
Exportcode ______ Zip _____________
Copyright @ Syncro Soft, 2013. All rights reserved.
9. <oXygen/> XML Schema 1.1 Support
Open content
● Allow other fields in the address element
Address
Name ___________
Email ___________
Street ___________
City ____________
Country _________
Phone __________
Copyright @ Syncro Soft, 2013. All rights reserved.
10. <oXygen/> XML Schema 1.1 Support
Override
● Customize the PO
Item
ProductName ____
Quantity_________
Price ___________
Comment _______
Copyright @ Syncro Soft, 2013. All rights reserved.
11. <oXygen/> XML Schema 1.1 Support
XML Schema Documentation
The documentation support was updated to
support the new elements of XML Schema 1.1.
Copyright @ Syncro Soft, 2013. All rights reserved.
12. <oXygen/> XML Schema 1.1 Support
Generate XML Instances
The XML Instance generator can handle the XML
Schema 1.1 features
Copyright @ Syncro Soft, 2013. All rights reserved.
13. <oXygen/> XML Schema 1.1 Support
Master Files
● Updated for the XML Schema 1.1
Module 4
Module 4 Module 6
Module 6
Master File
Master File Module 1
Module 1
Module 2
Module 2 Module 5
Module 5
Module 3
Module 3
Copyright @ Syncro Soft, 2013. All rights reserved.
14. <oXygen/> XML Schema 1.1 Support
XML Schema Master Files
Copyright @ Syncro Soft, 2013. All rights reserved.
15. <oXygen/> XML Schema 1.1 Support
XML Schema Master Files
Copyright @ Syncro Soft, 2013. All rights reserved.
16. <oXygen/> XML Schema 1.1 Support
XML Schema Master Files
Copyright @ Syncro Soft, 2013. All rights reserved.
17. <oXygen/> XML Schema 1.1 Support
XML Schema Master Files
Copyright @ Syncro Soft, 2013. All rights reserved.
18. <oXygen/> XML Schema 1.1 Support
Search and Refactoring Actions
● Component dependencies
● Rename component
● Search declarations
● Search references
● Resource Hierarchy/Dependencies
Copyright @ Syncro Soft, 2013. All rights reserved.
19. <oXygen/> XML Schema 1.1 Support
Master Files Benefits
● Validation
– A module is validated in the context is used from
● Content Completion and Outline
– Components shown in the Content Completion window
and Outline are collected starting from the master files.
● Search and refactoring actions
– operate on the scope defined by the current module's
master files
Copyright @ Syncro Soft, 2013. All rights reserved.
20. <oXygen/> XML Schema 1.1 Support
Thank you!
Questions?
<oXygen/> XML Editor
http://www.oxygenxml.com
octavian_nadolu@oxygenxml.com
@OctavianNadolu
Copyright @ Syncro Soft, 2013. All rights reserved.