Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324973

Summary: SDO Schema Generation and Global Attributes
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Project Inbox <eclipselink.sdo-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P4 CC: david.twelves
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Blaise Doughan CLA 2010-09-10 10:35:04 EDT
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.example.org/root" 
    xmlns="http://www.example.org/root" 
    elementFormDefault="qualified">

    <xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/03/xml.xsd" />

    <xs:element name="root" type="root"/>

    <xs:complexType name="root">
        <xs:attribute ref="xml:base"/>
        <xs:attribute ref="xml:lang"/>
    </xs:complexType>

</xs:schema>

When types are defined using the above schema, when the schema is generated the global attributes should generate as refs instead of being inlined.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:09:22 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink