[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: DOCTYPE/DTD

Subject: Re: DOCTYPE/DTD
From: "Michael Beddow" <mbnospam@xxxxxxxxxxx>
Date: Sat, 21 Jul 2001 09:59:23 +0100
xalan parser doctype
On Friday, July 20, 2001 6:50 PM
Samina Islam wrote:

> This is more of a Xalan question other than a specific
> XSL question.
>

Actually it's not, since it's a matter of the way XML parsers are
obliged to behave by the spec.

> Can I "turn Xalan off" so that it does not try to
> connect to the DTD (DOCTYPE) when it is parsing the
> input XML document?

No. Not unless you massage the xml first to comment out or remove the
DOCTYPE declaration. To amplify a remark Jeni made in a reply to your
earlier postings, Xalan (or rather its parser, Xerces) will NOT by
default try to validate the file against the declared DTD, though you
can ask it to do so via a command line switch if you like. But it will
(as part of its conformance) attempt to access the DTD in order to
resolve any entity definitions it may contain. I'm not sure whether
Xerces has a switch that would (non-conformingly) supress this
behaviour -- some parsers do -- but AFAIK there's no switch you can pass
to Xalan to achieve that.

Michael
---------------------------------------------------------
Michael Beddow   http://www.mbeddow.net/
XML and the Humanities page:  http://xml.lexilog.org.uk/
---------------------------------------------------------


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.