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

From: Alex Brown <alexb@griffinbrown.co.uk>
Date: Wed Jun 28 2006 - 16:52:06 UTC

Martin hi

What about this?

# this model matches any well-balanced XML, or none
any-well-balanced =
  (text
   | element * {
       (attribute * { text }
        | text
        | any-well-balanced)*
     })*

- Alex.

> -----Original Message-----
> From: dsdl-discuss-bounce@dsdl.org
> [mailto:dsdl-discuss-bounce@dsdl.org] On Behalf Of Martin Bryan
> Sent: 28 June 2006 17:14
> To: dsdl-discuss@dsdl.org
> Subject: [dsdl-discuss] Re: Revised version of DSDL Part 8
>
> Jirka (and anyone else)
>
> Does
> any = element * { attribute * { text }* & any* & text }
> actually allow for the situation where you have mixed text
> (e.g. some text with an emphasized phrase within it?
>
> I suspect that this model only allows for well-formed XML,
> with a wrapper element. This will not meet the generic case
> for entity definition.
>
> Martin
>
> ----- Original Message -----
> From: "Jirka Kosek" <jirka@kosek.cz>
> To: <dsdl-discuss@dsdl.org>
> Sent: Monday, June 26, 2006 8:30 PM
> Subject: [dsdl-discuss] Re: Revised version of DSDL Part 8
>
>
> Martin Bryan wrote:
>
> > Rick has suggested that the model for default content
> should be ANY rather
> > than plain text, but I can't see what the compact syntax
> equivalent of ANY
> > is as mixed requires an accompanying pattern. Can anybody
> suggest what the
> > RNC equivalent of ANY should be please.
>
> What about
>
> any = element * { attribute * { text }* & any* & text }
>
> --
> ------------------------------------------------------------------
> Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
> ------------------------------------------------------------------
> Profesionální školení a poradenství v oblasti technologií XML.
> Podívejte se na náš nově spuštěný web http://DocBook.cz
> Podrobný přehled školení http://xmlguru.cz/skoleni/
> ------------------------------------------------------------------
> Nejbližší termíny školení:
> ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
> ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
> ------------------------------------------------------------------
> http://xmlguru.cz Blog mostly about XML for English readers
> ------------------------------------------------------------------
>
>
>
> --
> 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)
>
>

--
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 Wed Jun 28 18:52:16 2006

This archive was generated by hypermail 2.1.8 : Wed Jun 28 2006 - 18:13:02 UTC