Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Retrieving documentation from an <xsd:pattern> within a schema
Retrieving documentation from an <xsd:pattern> within a schema [message #592695] Thu, 25 November 2004 10:42
Ray is currently offline Ray
Messages: 9
Registered: July 2009
Junior Member
Hi there,

I'm having trouble retrieving the text from a documentation element
contained within an annotation within an <xs:pattern> element. Through the
API i can successfully get the text from annotations/documentation within
other parts, such as element declarations or type definitions, just not when
the annotation is within the pattern. Here's an example

<xs:simpleType name="ISBN">
<xs:annotation>
<xs:documentation>The ISBN is a unique code identifying the
book</xs:documentation> ///I can get this one
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]{3}(-[0-9]{6})?">
<xs:annotation>
<xs:documentation>A string of the form
aaa-xxxxxx</xs:documentation> ///I can't get this one
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>

I'm wondering if this is a known bug, or if i'm missing something obvious.
If it is a bug, any ideas how to go about submitting it?

Thanks very much for your help,

Ray
Previous Topic:Using XSD API with DOM
Next Topic:Error using sequence
Goto Forum:
  


Current Time: Tue Jul 29 10:51:28 EDT 2014

Powered by FUDForum. Page generated in 0.01399 seconds