On Tue, 22 Jan 2002 10:15, Paul Hammant wrote:
> >If so extract them and make sure the info files work using those DTDs.
> > Open up them in a validating editor or use validation tools to check it.
>
> XMLSpy barfs.  It thinks there is something wrong with the DTD.  I
> followed its suggested changes in Phoenix CVS (not committed).
>
> Before:
>  <!ELEMENT service   EMPTY >
>     <!ATTLIST service   name      CDATA  #REQUIRED >
>     <!ATTLIST service   version   CDATA >
>
> ---
>  <!ELEMENT service EMPTY>
>    <!ATTLIST service
>         name CDATA #REQUIRED
>         version CDATA #REQUIRED
>
>
> ( i.e. one more #required )
>
> Now it has been rebuilt, everything works.  Please advise.

Well versions ar enot required attributes, so thats no it ... my memory fades 
but there is another directive that saids make it optional and there is also 
one that saids give it a default value if not provided.

So the proper way to do it would be something like

    <!ATTLIST service
         name CDATA #REQUIRED
         version CDATA #OPTIONAL "1.0.0">

or

    <!ATTLIST service
         name CDATA #REQUIRED
         version CDATA #OPTIONAL>

replacing "#OPTIONAL" with whatever the real element is ;)

-- 
Cheers,

Pete

*------------------------------------------------*
| Trying is the first step to failure.           |
|   So never try, Lisa  - Homer Jay Simpson      |
*------------------------------------------------*


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to