xsl-list
[Top] [All Lists]

RE: [xsl] Process document by ignoring DTD path

2008-09-15 04:29:25

Hi all,
Is it possible to process below structure(please note DTD 
path) by saxon and xslt1.0. I think no we need to mention DTD 
path.  Is it correct???

<?xml version="1.0"?>
<!DOCTYPE TEI.2 PUBLIC "-//MEP//DTD Model Editions 
Partnership data capture level 3 ver. 2.0//EN" "tei.dtd"> <TEI.2> ..
</TEI.2>



The XSLT processor doesn't ever look at the DOCTYPE declaration. It's the
XML parser that handles it, so this is a question about XML parsing, not
about XSLT.

The XML parser needs to fetch the external DTD, whether or not you are
validating against the DTD, because it might contain definitions of external
entities.

If you don't want to fetch the external DTD, either remove the DOCTYPE
declaration, or create a local copy of the DTD.

Michael Kay
http://www.saxonica.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>