|
Home > Online Product Documentation > Table of Contents > Adding Comments, Annotation, and Documentation Nodes to XML Schemas Adding Comments, Annotation, and Documentation Nodes to XML SchemasThe XML Schema Recommendation provides comment and annotation nodes for you to provide information that documents an XML Schema. You can add these nodes to any node in an XML Schema. The difference between comments and annotations is that a human being must read a comment node for it to have meaning. An annotation element allows you to specify nodes that a stylesheet can operate on. CommentsYou cannot add comments in the Diagram tab. To add comments in the Tree tab:
1. Click any node in your schema.
2. In the left tool bar, click
New Comment
3. Type your comment and press Enter.
Annotations
You use an
Diagram View
When you create an annotation in the
Diagram tab, you create the element and specify its subelement (
To add an annotation:
1. Right-click the node you want to annotate.
2. Select
Add > Annotation from the shortcut menu.
The annotation icon appears in the
Diagram tab
3. Right-click the annotation icon and select the type of annotation you want to define -
appInfo (
documentation (
4. In the text pane, type the text for the
appInfo or
documentation node.
Tree ViewTo add an annotation:
1. Click the node you want to annotate.
2. In the left tool bar, click
New Annotation
Annotation node.
3. In the left tool bar, click
New
Documentation
4. If you added documentation, in the
Properties window, double-click the
Source field and type the URL or file path for the documentation you want to include in the schema, and press Enter.
Double-click the Language field and enter the language of the contents of the source file.
5. In the left tool bar, click
New Text
Moving a Comment or AnnotationIf the parent of the new comment or annotation node has more than one child, you can move the comment or annotation with the up or down arrow. However, you cannot move the comment or annotation out of the scope of its parent. Example
In an XML Schema, you might have a
The contents of a
You can apply an XSLT stylesheet to this XML Schema document. The stylesheet could generate an HTML manual by extracting the
|

Cart

