hello everybody,
well, i gotta thank all of you for the help first
of all.
Now, let me tel tell you what i did in the
end...
As <dpenton>
suggested, i changed the order of the #PCDATA and
the sub-point child.
But that resulted in
another error.
Then i had to
go with a workaround... by adding another element:
<!ELEMENT point (description)>
<!ELEMENT description
(sub-point*)>
<!ELEMENT sub-point (#PCDATA)>
Kazi.
PS. I am feeling now maybe that i didnt explain my
intentions clearly in my mail... i was trying to create xml for
writing a list of notes where any certain point in the list could having nested
points or 'sub-points' as i call them.
Sent: Saturday, July 21, 2001 5:21
AM
Subject: Re: mixed content in DTDs
Right. I seem to have tried to answer too
late at night! The asterisk goes where you have it for mixed
content.
----- Original Message -----
Sent: Saturday, May 19, 2001 7:17
AM
Subject: Re: mixed content in
DTDs
I guess this is the correct format
<!ELEMENT point (#PCDATA | sub-point )*>
> ----- Original Message -----
> From: "Kazi the P i R @ t {-" <[EMAIL PROTECTED]> > To:
"Lim Huat Heng" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> >
Sent: Thursday, July 19, 2001 3:55 AM > Subject: mixed content in
DTDs > > > > I have a line like this in my
dtd: > > <!ELEMENT point
(sub-point*,#PCDATA)> >
> Is this violating the mixed content
rule?? > > I get an error saying: >
> > > A name
was started with an invalid character. Line 11, Position 41 > >
>
>
<!ELEMENT point (sub-point*,#PCDATA)>
> > ----------------------------------------^ > >
> > HELP > > > > Kazi > > >
> > >
--------------------------------------------------------------------- >
> In case of troubles, e-mail: [EMAIL PROTECTED] >
> To unsubscribe,
e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >
--------------------------------------------------------------------- >
In case of troubles, e-mail: [EMAIL PROTECTED] >
To unsubscribe,
e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
|