Description of Sample XML Schema

Suppose you want to define an XML Schema that defines book, magazine, and newsletter elements. The type of each of these elements is PublicationType. The XML Schema defines the PublicationType complexType. An element that is a PublicationType has the following description:

  • The genre attribute specifies the style of the publication. That is, whether it is a book, magazine, or newsletter.
  • There is always exactly one title element.
  • The subtitle element is optional.
  • There must be at least one author element and there can be more. Each author element contains one first-name element and one last-name element.
  • Of the following three elements, exactly one must always be present:
    • ISBNnumber
    • PUBnumber
    • LOCnumber
  • The elements must be in the order specified in this list.

The following topics in this section describe how to define this XML Schema using the Diagram tab of the XML Schema Editor.

Binary XML

How do I get my binary data into XML? How do I get my binary data out of XML? The answers to these questions and more in this amazing Binary XML tutorial.

Translating XML documents to EDIFACT

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to EDIFACT

XML Schema Library

The Stylus Studio XML Schema Library provides a detailed reference of many of the world's most commonly used XML vocabularies in an easy-to-read format.

WYSIWYG XSLT Designer

Stylus Studio's powerful and easy-to-use WYSIWYG ("What you see is what you get") XSLT Designer lets you create XSLT stylesheets without writing any code! Go from a blank slate to solid, robust XSLT in minutes, using simple drag-and-drop operations.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member