[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [relax-ng-comment] Re: Proposal for new Examplotron based on RNG
Eric sent to me, but due to a glitch in my address to the list, didn't
reach the list:
Hi John,
You seem to be reading in my mind :-) ... That's pretty much version 0.5
of examplotron which I am writing right now!
More later!
Thanks
Eric
On Wed, 2003-01-22 at 20:30, John Cowan wrote:
> Here's a proposal for a new version of Examplotron based on translation to
> RNG rather than translation to XSLT. The eg:assert attribute is not
> supported. I don't really understand the eg:placeHolder attribute,
> so I am not mentioning it here.
>
> The eg:occurs attribute has the values *, ?, +, and . as in existing
> Examplotron: it causes the element to be wrapped in a rng:zeroOrMore,
> rng:optional, rng:oneOrMore, or nothing at all.
>
> Elements are replaced with rng:element elements. Attributes are made
> optional (change from existing Examplotron) by wrapping the rng:attribute
> element in an rng:optional element.
>
> If an element has character content that is not whitespace, its content
> model is wrapped in an rng:mixed element.
>
> However, if an eg:type attribute is present, then the content model of the
> element will be rng:data if there is no character content, or rng:value if
> there is. An inheritable eg:lib attribute specifies the database library.
>
> The attribute eg:cons can be "|", "&", or "." and causes the content
> model of the element to be wrapped in rng:choice, rng:interleave, or
> rng:group respectively.
>
> eg:import is mapped to rng:externalRef.
>
> Every rng:element is given an rng:attribute child which allows any eg:
> attribute, so that the Examplotron schema will validate against itself.
>
> There is no support for non-Russian-doll schemas or attribute types.
> All attributes are optional (there could be an operating mode or eg:att
> flag forcing all attributes to be required).
--
Did you know it? Python has now a Relax NG (partial) implementation.
http://advogato.org/proj/xvif/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
Yes, chili in the eye is bad, but so is your John Cowan
ear. However, I would suggest you wash your jcowan@reutershealth.com
hands thoroughly before going to the toilet. http://www.reutershealth.com
--gadicath http://www.ccil.org/~cowan
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC