xsl-list
[Top] [All Lists]

RE: [xsl] Document function and DTD

2007-12-27 03:45:59
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>