You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Stanimir Stamenkov <st...@myrealbox.com> on 2004/10/22 19:53:07 UTC
XML Schema API - Particle Annotations
Hello,
I've found no way to get the annotation for a particle, i.e.:
-----"ann-test.xsd"
<?xml version="1.0" encoding="US-ASCII" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="some">
<xs:complexType>
<xs:sequence>
<xs:element ref="other">
<xs:annotation>
<xs:documentation>
Occurance 1 documentation.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="other">
<xs:annotation>
<xs:documentation>
Documentation of the 2nd occurance.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="other" type="xs:anyType">
<xs:annotation>
<xs:documentation>
Main definition documentation.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
-----"ann-test.xsd"--
I want to get the annotations for the two element particles occuring
in the "sequence" model of the "some" element definition. Is it
possible or I'm missing something?
I've put two files I'm testing with here:
http://www.geocities.com/stanio/test/AnnotationTest.java.txt
http://www.geocities.com/stanio/test/ann-test.xsd.txt
(obviously - remove the ".txt" extension after the download)
--
Stanimir
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: XML Schema API - Particle Annotations
Posted by Stanimir Stamenkov <st...@myrealbox.com>.
/Stanimir Stamenkov/:
> I've found no way to get the annotation for a particle...
O.k. Seems like ommission in the XML Schema spec. There's no
'annotation' property for the particle component
<http://www.w3.org/TR/xmlschema-1#Particle_details> specified. Do
you think there should be?
--
Stanimir
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org