Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 03:22 Go to next message
sam mac is currently offline sam mac
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 08:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
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
Re: Defining type for specific Occrrance of the element. [message #881942 is a reply to message #881897] Tue, 05 June 2012 10:24 Go to previous messageGo to next message
sam mac is currently offline sam mac
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 10:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
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
>
>
>
Re: Defining type for specific Occrrance of the element. [message #882370 is a reply to message #881955] Wed, 06 June 2012 06:11 Go to previous message
sam mac is currently offline sam mac
Messages: 3
Registered: June 2012
Junior Member
Thanks Ed



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


Current Time: Sat Jul 26 13:21:38 EDT 2014

Powered by FUDForum. Page generated in 0.01918 seconds