
Chapter 3 Building an XML model
Defining annotations
You define annotations when you want to add information about an XML model.
Annotations are made of Documentation and Application Information:
- Documentation allows you to write a URI reference or any well-formed XML content that will give extra information about XML objects or documents
- Application Information allows you to write a URI reference or any well-formed XML content that will be used by applications for processing instructions
There are two kinds of annotations:
- Local annotations, for extra information on XML objects. You can define them through the Annotation page of an object property sheet. They have no property sheet
- Global annotations, for extra information on XML models or schemas. You can define them through the Items page or the External Schemas page of a model property sheet. They have a property sheet
Generated schema of a global annotation:
This global annotation is composed of a documentation, with a well-formed XML content (extract of a DTD file), and an application information.
Annotations are only available in models targeted with XSD.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|