How to format XSD documentation?

Problem:

I have an xsd schema with documentation included, for example:

<xs:element name="Tag" type="XTag">
  <xs:annotation>
    <xs:documentation>
      Do like this:
       - foo
       - bar
    </xs:documentation>
  </xs:annotation>
</xs:element>

When I look at the documentation in Eclipse, white spaces are truncated to a single space, so I get:

Do like this: - foo - bar

This naturally limits readability when the documentation is more than a small note. For example, in javadoc, you can create html tags to format documentation

Question:

Is there a way to format the documentation, at least by simply adding new lines?

Some information:

I do everything in Eclipse. The XSD record I am adding to preferences -> XML -> XML catalog, so I can get content support and view the documentation in an XML editor.

, , Eclipse . , eclipse, :)

+5
2

<![CDATA[ ]]> html. .

<xs:annotation>
    <xs:documentation>
    <![CDATA[
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br/>
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
<p><b>Duis aute</b> irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </p>
<br/>
<b>Excepteur sint occaecat cupidatat non proident,<br/>
<ul>
    <li>sunt in culpa qui officia</li> 
    <li>deserunt mollit anim</li>
    <li>id est laborum.</li>
</ul>
    ]]>
    </xs:documentation>
</xs:annotation>

Spring Tool Suite v3.6.4 (Eclipse 4.4.2)

+3

html <br/> List<ul><li>item</li></ul> .

, " " gif . , xsd xml, XML- oXygen.

+3

All Articles