OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-lcsc message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: [ubl-lcsc] ISSUE: Nesting and Containership within Schema


You can specify that trivially if you use ASN.1 as the schema definition
notation:

	Root ::= SEQUENCE {
	   el1	.....
	   el2	SEQUENCE {
		  f1	..... OPTIONAL,
		  f2	..... OPTIONAL,
		  f3	..... OPTIONAL} (EXCEPT {}) OPTIONAL,
	   e12  ..... }

John L

"Eve L. Maler" wrote:
> 
> (Sorry to jump into this thread so late...  I've been out of the office.)
> 
> I don't know of a way to enforce this kind of constraint using XSD
> alone; I think we'd have to resort to something like Schematron, or
> prose, for it.
> 
>         Eve
> 
> CHIUSANO, Joseph wrote:
> > Also, in the schema you can enforce that if none of the elements within
> > a container appear (if they are all optional), then the container
> > (wrapper) element will not appear.  This would prevent empty container
> > elements if we didn't want to have them.
> 
> --
> Eve Maler                                        +1 781 442 3190
> Sun Microsystems                            cell +1 781 883 5917
> XML Web Services / Industry Initiatives      eve.maler @ sun.com
> 
> ----------------------------------------------------------------
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.oasis-open.org/ob/adm.pl>

-- 
   Prof John Larmouth
   Larmouth T&PDS Ltd
   (Training and Protocol Development Services)
   1 Blueberry Road                     
   Bowdon                               j.larmouth@salford.ac.uk
   Cheshire WA14 3LS                    Tel: +44 161 928 1605
   England				Fax: +44 161 928 8069


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC