[dsdl-discuss] Re: Revised version of DSDL Part 8

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Thu Jun 29 2006 - 08:36:30 UTC

Le jeudi 29 juin 2006 à 18:08 +1000, Rick Jelliffe a écrit :
> I would prefer if DSDL schemas used
>
> "|" and "," rather than "&", to make the translation to DTDs and XSDs
> obvious,
> "mixed" rather than "{text & ... }*" to make the translation to XSD obvious
>
> So
>
> any-content = ( mixed {any-element*} )
> any-attribute = attribute * {text} *
> any-element = element * { any-attribute, any-content }
>
>
> But Eric I don't understand one thing: how do those productions allow
> multiple attributes?
> It looks like "any-attribute" allows 1 single attribute of any name,

No, there is a trailing "*" in "any-attribute = attribute * {text} *"
which apply to the whole attribute.

I guess that this pattern should be called any-attributes instead of
any-attribute :) .

any-attributes = attribute * {text} *
any-element = element * { any-attributes, any-content }

Unless you prefer to move the trailing star to the reference:

any-attribute = attribute * {text}
any-element = element * { any-attribute *, any-content }

Eric

-- 
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Thu Jun 29 10:36:31 2006

This archive was generated by hypermail 2.1.8 : Thu Jun 29 2006 - 09:13:02 UTC