Next in thread → Next in month →

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

From
CHIUSANO, Joseph <>
Date
2002-08-09T13:38:42+00:00
ID
Thread
RE: [ubl-lcsc] ISSUE: Nesting and Containership within Schema
Title: RE: [ubl-lcsc] ISSUE: Nesting and Containership within Schema

Regarding the reference to Schematron below:  Does anyone have a sense of how widely supported in schema processors Schematron currently is?  Otherwise, I imagine one would use the tools from the http://www.ascc.net/xml/resource/schematron/schematron.html site ("Download Schematron 1.5 Tools").

Regards,

Joe

> **************************************************************************

>   Joseph M. Chiusano

>   Logistics Management Institute

>   2000 Corporate Ridge

>   McLean, VA 22102

>   Email: 

>   Tel: 571.633.7722

> **************************************************************************

> 

-----Original Message-----

From: John Larmouth [mailto:]

Sent: Wednesday, August 07, 2002 5:11 AM

To: Eve L. Maler

Cc: CHIUSANO, Joseph; Ubl-Lcsc

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                               

   Cheshire WA14 3LS                    Tel: +44 161 928 1605

   England                              Fax: +44 161 928 8069

----------------------------------------------------------------

To subscribe or unsubscribe from this elist use the subscription

manager: <http://lists.oasis-open.org/ob/adm.pl>
Next in thread → Next in month →