Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324973 - SDO Schema Generation and Global Attributes
Summary: SDO Schema Generation and Global Attributes
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 10:35 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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