dgis / xsddiagram

XSD Diagram is a free Xml Schema Definition (XSD) diagram viewer for Windows written in c# Framework.NET 2.0
http://regis.cosnier.free.fr/?page=XSDDiagram&nomenu
GNU General Public License v2.0
224 stars 52 forks source link

Multiple 'annotation.documentation' tag support in diagram #8

Closed axel3rd closed 7 years ago

axel3rd commented 8 years ago

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 8 years ago

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

dgis commented 7 years ago

It should work now!

axel3rd commented 7 years ago

Thank you !