This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: document() call clashes with DOCTYPE declaration?
- From: "G. Ken Holman" <gkholman at CraneSoftwrights dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 02 May 2002 18:54:07 -0400
- Subject: Re: [xsl] document() call clashes with DOCTYPE declaration?
- Reply-to: xsl-list at lists dot mulberrytech dot com
At 2002-05-02 16:28 -0600, Greg Faron wrote:
> How does one "close" a DOCTYPE assignment tag?
The document type declaration (that points to and/or contains the document
type definition) is "closed" with your use of the ">" on the same
line. This isn't a "tag".
>XSL Transformation failed due to following error:
>Error while parsing "file:///M:/books/wiley/lax/xml/c01.xml". A
>declaration was not closed.
This indicates that one of the declarations in the document type definition
has a problem, not with your instance. Since your document type definition
is comprised only of declarations in an external declaration subset, the
problem isn't in your instance.
When the instance points to an external declaration subset through the use
of the SYSTEM parameter of the document type declaration, the processor can
choose to read the subset because there may be important components of the
parsing context defined, such as entities (the © in particular in your
case).
>When I remove the DOCTYPE line (and the © entity reference), it works
>fine.
Right ... because you are no longer reading the external declaration subset
that has the problem declaration therein.
Review your "../../JWSCHA/jwscha.dtd" file ... you will find the problem in
there.
I hope this helps.
..................... Ken
--
Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO: June 17-21, 2002
- : 3-days XML Information Modeling: July 31-August 2, 2002
G. Ken Holman mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1 Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training: 2002-05-06,07,09,10,13,15,20,
- 06-04,07,10,11,13,14,17,20,07-31,08-05,27,30
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list