EClass for prefix and namespace definition? [message #602525] |
Sun, 05 August 2007 16:47 |
Eclipse User |
|
|
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.23672 seconds