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

RE: Document function and DTD

Subject: RE: Document function and DTD
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 27 Dec 2007 10:45:13 -0000
RE:  Document function and DTD
> I am using Saxon 8.9b.
> 
> The catalog files should be configed correctly since it can 
> find the DTD using PUBLICID for the source XML file (not 
> src_doc in XSLT).
> 
> It seems to me the catalog file is NOT searched using 
> document function in XSLT. It try to find a DTD file in the 
> same folder where src.xml is.

You haven't said *how* you are running Saxon. 

When you call the document() function Saxon will create (or reuse) an XML
parser. The XML parser will attempt to locate the DTD using its
EntityResolver. You need to make sure that the XML parser is preconfigured
to use an EntityResolver that searches the catalog. The usual way to do that
is to use the -x option on the command line.

Michael Kay
http://www.saxonica.com/

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.