xml schema annotations and tag sense
Posted: Tue Jul 11, 2006 6:44 pm
I'm using the oxygen eclipse plugin and I'm trying to figure out how to create an xml schema with annotations that show up in the tag sense of an xml document linked to the schema.
For example, here's part of the xml schema:
Then I link my xml to the above schema:
The tag sense displays properly showing me the possible tags, but the yellow comment block does not appear with my annotations in it.
Can anyone give me a simple example of how to make this work.
Thank you.
For example, here's part of the xml schema:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:annotation><xs:documentation>can u see me</xs:documentation></xs:annotation>
<xs:element name="viewInstructions">
<xs:complexType>
<xs:sequence>
<xs:annotation><xs:documentation>can u see me</xs:documentation></xs:annotation>
<xs:element ref="presentationPreferences"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:annotation><xs:documentation>can u see me</xs:documentation></xs:annotation>
<xs:element name="presentationPreferences">
<xs:complexType>
<xs:sequence>
<xs:annotation><xs:documentation>can u see me</xs:documentation></xs:annotation>
<xs:element ref="styles" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="styles">
<xs:complexType>
<xs:sequence>
<xs:element ref="import"/>
</xs:sequence>
<xs:attribute name="switchBranchId" use="required" type="xs:NCName"/>
</xs:complexType>
</xs:element>
</xs:schema>
Code: Select all
<viewInstructions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="add-product.xsd">
Can anyone give me a simple example of how to make this work.
Thank you.