Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Disable loading of DTD in <xslt > task

Disable loading of DTD in <xslt > task

2007-07-06       - By Roman Ivashin
Reply:     1     2  

Hello all!

 I have a XML document with <DOCTYPE> section:
 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2/
/EN"
                          "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
 
 When I try process this document with <xslt> task, it fails with
ConnectException because
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd is not accessible.
 How can I prevent XSLT processor from validating of XML document? Or may be
from loading
 external DTDs.

 I know how to set such features for Xerces, but in <xslt> task I can only
specifiy Xalan's features.

 Any help is appreciated!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.