Subject: Re: [xsl] Document function and DTD From: jingjun long <longjingjun@xxxxxxxxx> Date: Thu, 27 Dec 2007 17:09:57 +0800 |
DocType definition in XML file: <!DOCTYPE mybook PUBLIC "-//atom//DTD MYBOOK-REV2//EN" "mybook.dtd">
Error: FODC0005: java.io.FileNotFoundException: C:\data\src\mybook.dtd (System can not find the file.)
"jingjun" == jingjun long <longjingjun@xxxxxxxxx> writes:
jingjun> hi there, I am using document function to read multiple jingjun> XML document as the source. I have a question and wonder jingjun> if you have experience this before.
jingjun> In the XSLT, I say:
jingjun> <xsl:variable name="src_doc" jingjun> select="document('src.xml')"/>
jingjun> If there is no DocType definition in src.xml, it is ok.
jingjun> In my case, there is a DocType definition in src.xml. The jingjun> DTD is not in the same folder where src.xml is. I use jingjun> catalog file to locate the DTD file. In this case, I get jingjun> "can not find DTD file" error when I run the xslt.
jingjun> My question is, is there any way to set catalog resolver jingjun> for document function?
No. It ought to use the same catalogs as for the principal source document.
Which XSLT processor are you using? Have you tried turning on catalog debugging (if it has such a feature) to make sure that the catalog is being searched properly?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Document function and DTD, Colin Paul Adams | Thread | Re: [xsl] Document function and DTD, Colin Paul Adams |
[xsl] xalan and replace "regex", Mansour | Date | Re: [xsl] xalan and replace "regex", Colin Paul Adams |
Month |