RE: [xsl] collection() issue with dtd resolving

Subject: RE: [xsl] collection() issue with dtd resolving
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 9 Oct 2009 19:20:57 +0100
First thing to understand is that it's not the collection() function (or the
XSLT processor) that's interested in the DTD, it's the XML parser. You can't
stop the XML parser reading the external DTD (it's needed because it might
contain entity declarations) but you can redirect it to a local copy using
an EntityResolver. The most common way of doing this is with OASIS catalogs
- this uses a standard EntityResolver that looks up the systemId or publicId
in a catalog that you provide, which gives a mapping to a local file where a
copy (or cut-down variant) is kept.


Michael Kay  

> -----Original Message-----
> From: Mario Madunic [mailto:Mario_Madunic@xxxxxxxxxxxx] 
> Sent: 09 October 2009 14:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] collection() issue with dtd resolving
> Was  curious if there is a function or extension function 
> that would stop the collection() from resolving the dtd 
> declaration? The problem is I'm behind a firewall and it is 
> timing out. I'm using Saxon I know I could easily 
> add a parameter to define whether or not to output the DTD 
> declaration or even use a system identifier that is local, 
> but would rather not if I don't have to. 
> Thanks
> Marijan (Mario) Madunic
> Publishing Specialist
> New Flyer Industries
> (204) 934 8815
> mario_madunic@xxxxxxxxxxxx
> --------------------------------------------------------------------
> Please consider the environment before printing this e-mail.
> CONFIDENTIALITY STATEMENT: This communication (and  any and 
> all information or material transmitted with this 
> communication) is confidential, may be privileged and is 
> intended only for the use of the intended recipient. If you 
> are not the intended recipient, any review, retransmission, 
> circulation, distribution, reproduction, conversion to hard 
> copy, copying or other use of this communication, information 
> or material is strictly prohibited and may be illegal. If you 
> received this communication in error or if it is forwarded to 
> you without the express authorization of New Flyer, please 
> notify us immediately by telephone or by return email and 
> permanently delete the communication, information and 
> material from any computer, disk drive, diskette or other 
> storage device or media. Thank you.

Current Thread