dgis/xsddiagram

Multiple 'annotation.documentation' tag support in diagram

axel3rd opened this issue · 3 comments

This is a following of #4. This issue is very minor ... and this is for being very pernickety.

Currently, only first documention tag is displayed in diagram (on v1.0), but annotation tag could contain more that one documentation with source|lang attributes.

For sample, if you are opening Maven schema, it explicit the problem.

This snippet represents the use case :

<xs:annotation>
  <xs:documentation source="version">1.0</xs:documentation>
  <xs:documentation xml:lang="fr" source="doc">Documentation française</xs:documentation>
  <xs:documentation xml:lang="en" source="doc">English documentation</xs:documentation>
  <xs:documentation>This feature is wonderful !</xs:documentation>
</xs:annotation>

Perhaps these attributes could be used for produce :

 1.0 (version)
 Documentation française (fr, doc)
 English documentation (en, doc)
 This feature is wonderful !

It is better to have the source at the end, because could a an URI so a little long text.

dgis commented

Thank you, I will add it for the next version;-)

dgis commented

It should work now!

Thank you !