Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XSD Schema Editor Question(XSD Schema Editor Question)
XSD Schema Editor Question [message #1273283] Wed, 19 March 2014 20:51 Go to next message
Arjan Kok is currently offline Arjan KokFriend
Messages: 40
Registered: July 2009
Member
Hi,

I would like to create a XSDComplexTypeDefinition using the XSD Schema Editor: something like below:

<xs:complexType id="nl-types2_emailItemType" name="email2ItemType">
<xs:simpleContent>
<xs:restriction base="xbrli:stringItemType">
<xs:minLength fixed="false" value="7"/>
<xs:maxLength fixed="false" value="254"/>
<xs:pattern value="[^@]+@[^@]+"/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>


However, I am not able to set the base type. Looking at the code, the basetype property is defined as not settable in the ItemProvider.

I think I am missing something - what am I missing?


Arjan Kok.
Re: XSD Schema Editor Question [message #1273365 is a reply to message #1273283] Wed, 19 March 2014 23:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Arjan,

You're using the Sample XSD Editor, not the feature-rich editor provided
by the Web Tools project?

On 19/03/2014 1:51 PM, Arjan Kok wrote:
> Hi,
> I would like to create a XSDComplexTypeDefinition using the XSD Schema
> Editor: something like below:
> <xs:complexType id="nl-types2_emailItemType" name="email2ItemType">
> <xs:simpleContent>
> <xs:restriction
> base="xbrli:stringItemType">
> <xs:minLength fixed="false" value="7"/>
> <xs:maxLength fixed="false" value="254"/>
> <xs:pattern value="[^@]+@[^@]+"/>
> </xs:restriction>
> </xs:simpleContent>
> </xs:complexType>
>
>
> However, I am not able to set the base type. Looking at the code, the
> basetype property is defined as not settable in the ItemProvider.
>
> I think I am missing something - what am I missing?
>
>
> Arjan Kok.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XSD Schema Editor Question [message #1274301 is a reply to message #1273365] Fri, 21 March 2014 09:02 Go to previous messageGo to next message
Arjan Kok is currently offline Arjan KokFriend
Messages: 40
Registered: July 2009
Member
Ed,

Yes, probably I am using the sample XSD Editor because I am definitively not using the feature rich editor provided by the Web-Tools project.

However, I cannot find the sample XSD Editor in the list of plugins we are shipping (???) Is it part of the another plugin?

Do you recommend to use the Web-Tools editor because of this non-settable base type problem?




Re: XSD Schema Editor Question [message #1274529 is a reply to message #1274301] Fri, 21 March 2014 15:46 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Arjan,

The web tools project provides a full function editor, so yes, you'll be
better off to install WTP's XML tools....

On 21/03/2014 2:02 AM, Arjan Kok wrote:
> Ed,
>
> Yes, probably I am using the sample XSD Editor because I am
> definitively not using the feature rich editor provided by the
> Web-Tools project.
> However, I cannot find the sample XSD Editor in the list of plugins we
> are shipping (???) Is it part of the another plugin?
>
> Do you recommend to use the Web-Tools editor because of this
> non-settable base type problem?
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How do we make integer datatype behave like String data type in XML/XSD?
Next Topic:XSD Help
Goto Forum:
  


Current Time: Thu Apr 25 01:45:57 GMT 2024

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

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

Back to the top