Author |
Message
|
SOLOHERO |
Posted: Tue Apr 03, 2007 1:12 am Post subject: Namespace Schema |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Hi ,
Can we edit a namespace in the Message set locally.
Case if when we are tru=ying to deing in globally it can come across , but it is not showing for local Elememnt.
ASAP.
THANKS _________________ Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Tue Apr 03, 2007 4:35 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Case if when we are tru=ying to deing in globally it can come across , but it is not showing for local Elememnt. |
What does that mean? |
|
Back to top |
|
 |
SOLOHERO |
Posted: Tue Apr 03, 2007 9:17 pm Post subject: |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Hi,
1. I have Constructed a dictionary using XML schema
2. In the Dictionary there are few elements which are declared Locally and in the dictionary it dosent refer to the Namespaces for the elements that are declared Locally where as we can see for the elements that are declared Globally.
Does Any one of you have a solution for this. _________________ Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 04, 2007 1:43 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I have Constructed a dictionary using XML schema |
Sorry to be picky, but you have not constructed a dictionary. You have imported an XML schema to create a message definition file. When you add your message set to a BAR file, the dictionary will be constructed automatically.
Quote: |
In the Dictionary there are few elements which are declared Locally and in the dictionary it dosent refer to the Namespaces for the elements that are declared Locally where as we can see for the elements that are declared Globally. |
You cannot set the namespace for local elements - XML Schema does not allow it. A local element either has no namespace or it inherits the target namespace of the schema in which it is declared. You can control that via the properties of the message definition file in 'Default namespaces for local objects'.
Look up 'elementFormDefault' using your favourite search engine if you want more info. |
|
Back to top |
|
 |
SOLOHERO |
Posted: Wed Apr 04, 2007 3:17 pm Post subject: |
|
|
Centurion
Joined: 01 Feb 2007 Posts: 107
|
Hi Kim,
Thanks for correcting me.
I agree with you , but the schema is a valid schema when you defing the elemnts locally, but in MB it is not picking the Namespace for local elements , is there any option for that
Thanks Once again _________________ Thanks |
|
Back to top |
|
 |
kimbert |
Posted: Thu Apr 05, 2007 2:10 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Please post an example of the schema definition you need to produce. You can modify this example (from http://www.w3.org/TR/xmlschema-0/) if you like:
e.g.
Code: |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="PurchaseOrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="USAddress"/>
<xsd:element name="billTo" type="USAddress"/>
<xsd:element ref="comment" minOccurs="0"/>
<xsd:element name="items" type="Items"/>
</xsd:sequence>
<xsd:attribute name="orderDate" type="xsd:date"/>
</xsd:complexType>
</xsd:schema>
|
|
|
Back to top |
|
 |
|