Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Defining type for specific Occrrance of the element.
Defining type for specific Occrrance of the element. [message #881742] Tue, 05 June 2012 07:22 Go to next message
sam mac is currently offline sam macFriend
Messages: 3
Registered: June 2012
Junior Member
Hi

Is this possible that type can be defined for a specific occurrence of a multi-copy element.



thank you
Re: Defining type for specific Occrrance of the element. [message #881897 is a reply to message #881742] Tue, 05 June 2012 12:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
No, I don't think so.

On 05/06/2012 9:22 AM, sam mac wrote:
> Hi
>
> Is this possible that type can be defined for a specific occurrence of
> a multi-copy element.
>
>
> thank you


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Defining type for specific Occrrance of the element. [message #881942 is a reply to message #881897] Tue, 05 June 2012 14:24 Go to previous messageGo to next message
sam mac is currently offline sam macFriend
Messages: 3
Registered: June 2012
Junior Member

Thanks for you reply.

Can you suggest me a way to handle this.

A multi-copy element must have at least one copy filled, other copies may contain blank values. Following are the validation criteria

1) all copies are blank == Invalid
2) one copy filled and others are blank = Valid


Re: Defining type for specific Occrrance of the element. [message #881955 is a reply to message #881942] Tue, 05 June 2012 14:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Sam,

There's not a way to express that using XML Schema 1.0.

On 05/06/2012 4:24 PM, sam mac wrote:
>
> Thanks for you reply.
>
> Can you suggest me a way to handle this.
>
> A multi-copy element must have at least one copy filled, other copies
> may contain blank values. Following are the validation criteria
>
> 1) all copies are blank == Invalid
> 2) one copy filled and others are blank = Valid
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Defining type for specific Occrrance of the element. [message #882370 is a reply to message #881955] Wed, 06 June 2012 10:11 Go to previous message
sam mac is currently offline sam macFriend
Messages: 3
Registered: June 2012
Junior Member
Thanks Ed



Previous Topic:Inline embedded Schema
Next Topic:schema error
Goto Forum:
  


Current Time: Thu Mar 28 13:21:13 GMT 2024

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

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

Back to the top