What steps will reproduce the problem?
1. Create a file with contents
namespace xs = "http://www.w3.org/2001/XMLSchema"
namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"
start =
element Data {
attribute xsi:type { xsd:QName "xs:decimal" },
xsd:decimal
}
2. Run Jing -s on this file
What is the expected output?
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<ref name="Data"/>
</start>
<define name="Data">
<element name="Data" ns="">
<group>
<attribute name="type" ns="http://www.w3.org/2001/XMLSchema-instance">
<value type="QName" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:decimal</value>
</attribute>
<data type="decimal" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</group>
</element>
</define>
</grammar>
What do you see instead?
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<ref name="Data"/>
</start>
<define name="Data">
<element name="Data" ns="">
<group>
<attribute name="type" ns="http://www.w3.org/2001/XMLSchema-instance">
<value type="QName" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://www.w3.org/2001/XMLSchema">xs:decimal</value>
</attribute>
<data type="decimal" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</group>
</element>
</define>
</grammar>
What version of the product are you using? On what operating system?
<oXygen/> XML Editor 12.1, build 2011031114
Please provide any additional information below.
The original schema is valid, and produces the desired results when used for
validation.
Original issue reported on code.google.com by taraAt...@gmail.com on 17 May 2011 at 6:02
Original issue reported on code.google.com by
taraAt...@gmail.com
on 17 May 2011 at 6:02