xsl-list
[Top] [All Lists]

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

2009-10-09 14:22:03
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.

Regards,

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

-----Original Message-----
From: Mario Madunic [mailto:Mario_Madunic(_at_)newflyer(_dot_)com] 
Sent: 09 October 2009 14:03
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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 9.1.0.7j. 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(_at_)newflyer(_dot_)com


--------------------------------------------------------------------
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.


--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>