Subject: RE: [xsl] Document function and DTD From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 27 Dec 2007 10:45:13 -0000 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Document function and DTD, jingjun long | Thread | [xsl] xalan and replace "regex", Mansour |
Re: [xsl] Table type output in text, Jesper Tverskov | Date | RE: [xsl] xalan and replace "regex", Michael Kay |
Month |