Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » EClass for prefix and namespace definition?
EClass for prefix and namespace definition? [message #602525] Sun, 05 August 2007 16:47
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

Hello,

I just started to work with the XML Schema Infoset.

My goal is to create a schema which rererences some namespaces:
************************************************************ ***
<schema targetNamespace=3D"http://www.eclipse.org/xsd/examples/createxsd=
"
xmlns=3D"http://www.w3.org/2001/XMLSchema"
xmlns:address=3D"http://www.eclipse.org/xsd/examples/address"/>


Using the API, I just need the following line (according to the develope=
r =

works article "XMLSchemaInfosetModel,Part1"):
************************************************************ ***
qNamePrefixToNamespaceMap.put("address","http://www.eclipse.org/xsd/exam=
ples/address");


However, I need to know the concrete Model element, which stores the =

information and is referenced by the XSDSchema-EClass, since I want use =
=

the xsd.ecore for model transformation with ATL.
I can't find an element that defines a prefix - any help?

Although this is not an ATL newsgroup, I post the following example whic=
h =

demonstrates, why I need to know the EReference-Feature in the XSDSchema=
=

ECLass and the EClass representing the prefixes and namespaces. I hope t=
he =

example clarifies my question:
************************************************************ ***
rule Schema2Schema {
from
inputSchema XSD!XSDSchema
to
schema : XSD!XSDSchema(
targetNamespace <- 'de.uba.wiai.seda.soad.fallstudie',
<REFERENCE-FEATURE> <- refNamespaces
),
refNamespaces : XSD!<MODELELEMENT> (
prefix <- '...',
namespace <- '....'
)
}



Best regards

Rainer Bernhard


-- =

Erstellt mit Operas revolution=E4rem E-Mail-Modul: http://www.opera.com/=
mail/
Previous Topic:Are there any docs for the XML Schema engine?
Next Topic:EClass for prefix and namespace definition?
Goto Forum:
  


Current Time: Thu Apr 18 14:36:49 GMT 2024

Powered by FUDForum. Page generated in 0.01858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top