Minor Eclipse Plugin Attribute Issue
Posted: Mon Nov 18, 2013 8:45 pm
I found a minor issue with the Eclipse plug-in. I think this should be fixed at the earliest opportunity, but it is by no means a pressing issue.
Here is how to reproduce:
Take the following schema:
Now take the following XML doc:
Open the XML doc within Eclipse having the OxygenXML plug-in installed.
Next, left mouse click within <nodeB>.
Within Eclipse, left click the Attributes tab that defaults to appear at the bottom of the screen.
Within the Attributes tab, left click in the Value column of optionalAttribute. Type in false.
Observe the value now present in the Attributes tab-- Value: [Empty]
Again, this is very minor but I think you will want to fix this in a future version.
Here is how to reproduce:
Take the following schema:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="nodeA">
<xs:complexType>
<xs:sequence>
<xs:element ref="nodeB"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="nodeB">
<xs:complexType mixed="true">
<xs:attribute name="optionalAttribute" use="optional" type="xs:boolean"/>
</xs:complexType>
</xs:element>
</xs:schema>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<nodeA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test.xsd">
<nodeB>Test Data</nodeB>
</nodeA>
Next, left mouse click within <nodeB>.
Within Eclipse, left click the Attributes tab that defaults to appear at the bottom of the screen.
Within the Attributes tab, left click in the Value column of optionalAttribute. Type in false.
Observe the value now present in the Attributes tab-- Value: [Empty]
Again, this is very minor but I think you will want to fix this in a future version.