O'Reilly logo

XML Pocket Consultant by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Content Models for Schema Declarations

The XML Schema language is complex and has many nuances. After you’ve worked with XML Schema for a while, you’ll be looking for a quick guide to the content models used by each of the various declaration types, which is exactly what this chapter provides. Content models in this chapter follow the form:

<schema_name
 attribute1 = type
 attribute2 = (optionA | optionB | optionC) : defaultOption
...
 attributeN = type : default
>
Content: (constructA, constructB*)
</schema_name>

As you can see, the first section of the content model defines the opening tag for the schema construct and the attributes it can contain. If an attribute has a default value, this will be provided as well. The content for the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required