[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: PATCH: kspread and kword DTD
From:       Nicolas Goutte <nicog () snafu ! de>
Date:       2002-06-25 14:38:17
[Download RAW message or body]

On Monday 24 June 2002 23:46, Thomas Zander wrote:
> On Mon, Jun 24, 2002 at 10:09:27PM +0200, Nicolas Goutte wrote:
> > On Monday 24 June 2002 18:12, David Faure wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On Monday 24 June 2002 17:28, Daniel Naber wrote:
> > > > On Monday 24 June 2002 17:18, David Faure wrote:
>
(...)
> > This also means that children and
> > attributes are all optionals,
>
> Well, you can do an 'or' statement;
> <!ELEMENT MAILMERGE
>     ((FIELD+),EMPTY) >

You cannot! See definitions [45] and [46] of the XML specification.

You can have the keyword EMPTY, the keyword ALL, parsed character data (with 
or without children) or children. You cannot have EMPTY and children.

So you have to define your example as:

<!ELEMENT MAILMERGE
  (FIELD)*>

or perhaps as

<!ELEMENT MAILMERGE
  (FIELD+)?>

>
> Don't know if I got the syntax correct, but I meant to say; at least one
> FIELD child (for one usage), or an empty list (for the other usage).   This
> can be simplyfied but I'm not sure what the end result should be, so just
> an example :)
>
> You are right that the attributes are all optional, if not used by both.

Have a nice day/evening/night!
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic