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

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng-comment message

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


Subject: Re: [relax-ng-comment] Other separators for list element


This is a reasonable suggestion.  We did consider it but decided it was on
the wrong side of the 80/20 line for 1.0.  One reason is that many people
feel that the way to represent a structured object (such as a list) is to
use markup.  We included <list> only because this is well-established by
other schema languages such as DTDs (NMTOKENS, IDREFS etc) and XML Schema.

The extensible datatype library mechanism could help you here if you really
need this. You can add a datatype library that includes a list datatype with
a parameter that's a separator and other parameters that describe the
members of the list.

----- Original Message -----
From: "Peter Wilson" <pwilson@gorge.net>
To: <relax-ng-comment@lists.oasis-open.org>
Sent: Saturday, December 08, 2001 10:35 PM
Subject: [relax-ng-comment] Other separators for list element


> I am trying to code the Mozilla XUL syntax into a Relax NG schema.
>
> XUL uses the <list> concept, but the values are separated by commas -
> not spaces.
>
> May I suggest an extension of the <list> pattern, as follows:
>
> <list listseparator="regexp">
> ...
> </list>
> e.g.
> <list listseparator="/,\s*/">  a comma plus whitespace.
>
> If the regexp followed the Javascript or Pearl syntax, lists of any
> reasonable type of list could be constructed.
> List content could then be easily obtained with the
>     arrayOfListItems = string.split(regexp) idiom in Javascript.
>
>
> ----------------------------------------------------------------
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.oasis-open.org/ob/adm.pl>
>
>
>



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


Powered by eList eXpress LLC