Re: Notation

Subject: Re: Notation
From: Marcus Carr <mrc@xxxxxxxxxxxxxx>
Date: Wed, 31 Mar 1999 23:27:01 +1000
Bovone Stefano wrote:

> I have the following problem: I have the XML document
>
> <?xml version="1.0" encoding="UTF-8" stanalone="no"?>
> <!DOCTYPE HML SYSTEM "hml.dtd" [
> <!ENTITY pcl001 SYSTEM "pcl001.pcl" NDATA  PCL>
> ]>
>
> <HML>
> ....
>
> The file hml.dtd is like:
>
> <!NOTATION PCL SYSTEM "PCL Language">
> ....
>
> When I try to validate the XML document the parser said that it
> doesn't know the PCL notation.
> Is this right?

If the XML recommendation treats this the same way that the SGML
standard does, this is because the notation declaration must be declared
before it is used. With the construction you show however, the entity
declaration will be evaluated before hml.dtd is ever seen by the
processor. Try moving the notation declaration to the line before the
entity declaration and process again.


--
Regards,

Marcus Carr                      email:  mrc@xxxxxxxxxxxxxx
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread