Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328769 - XSD with <redefine> cannot be used to create a new EMF project
Summary: XSD with <redefine> cannot be used to create a new EMF project
Status: CLOSED DUPLICATE of bug 83055
Alias: None
Product: EMF
Classification: Modeling
Component: XML/XMI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 15:27 EDT by Florin Rosca CLA
Modified: 2010-10-26 18:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florin Rosca CLA 2010-10-26 15:27:16 EDT
Build Identifier: 20100917-0705

I am trying to generate a new EMF project from an existing XSD.
The project generation fails with error messages "The attribute may not have duplicate name and target namespace"

The XSD that I am using is an example for XHTML modularization from here: http://www.w3.org/TR/xhtml-modularization/schema_developing.html


<?xml version="1.0" encoding="UTF-8" ?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	targetNamespace="http://www.w3.org/1999/xhtml" xmlns:simpleml="http://www.example.com/xmlns/simpleml1"
	xmlns="http://www.w3.org/1999/xhtml" blockDefault="#all">

	<xs:import namespace="http://www.example.com/xmlns/simpleml1"
		schemaLocation="http://www.w3.org/MarkUp/SCHEMA/examples/simpleml-module-1.xsd" />

	<xs:redefine schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10.xsd">
		<xs:group name="xhtml.Misc.class">
			<xs:choice>
				<xs:group ref="xhtml.Misc.class" />
				<xs:element ref="simpleml:element" />
			</xs:choice>
		</xs:group>
	</xs:redefine>
</xs:schema>

Reproducible: Always

Steps to Reproduce:
1. File/New/Project.../EMF Project
2. Select XML Schema / Browse Workspace.../ choose the XSD file
3. Finish
Comment 1 Ed Merks CLA 2010-10-26 18:39:33 EDT
I've given up trying to make redefine work.

*** This bug has been marked as a duplicate of bug 83055 ***