cannot see schema comments in xml editor for STS [message #1003965] |
Tue, 22 January 2013 05:33  |
Eclipse User |
|
|
|
Environment: Spring Tool Suite 2.9.2.RELEASE
Eclipse 3.7.2
I have an xml file which i view using xml editor in STS IDE. I linked it to the associated schema file (xsd) for validation and content assist.
XML Sample:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<amendmentConfiguration xmlns:xsi="w3schools"
xsi:noNamespaceSchemaLocation="../../EMS-Shared/resources/amendment-configuration.xsd">
<common>
<prefillCodes>Amend0120 Amend0140 Amend0206</prefillCodes>
</common>
XSD Sample:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" xmlns:xs="w3schools">
<xs:element name="amendmentConfiguration" type="amendmentConfigurationType">
<xs:annotation>
<xs:documentation>Testing</xs:documentation>
</xs:annotation>
In eclipse preferences i turned on xml validation. So in my xml file i can directly access the schema and content assist will show me the available elements. Validation works also.
I expected when i hover over the amendmentConfiguration i would see the comment "Testing" but i do not. Is there any reason why? Is it tied to catalogs?
Thanks,
Shane.
Note: This crappy forum would not allow me to pass in the w3schools uri in the code snippet but you know what it is.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04048 seconds