Re: [xsl] Ignoring a DTD with document()

Subject: Re: [xsl] Ignoring a DTD with document()
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 Apr 2024 21:01:31 -0000
On 22/04/2024 22:51, Mark Giffin m1879@xxxxxxxxxxxxx wrote:
> Oops! Thanks for the correction. Any idea if Oxygen is using Xerces?

These days with Java in one way (embedded version of Xerces in the
JRE/JDK) or another (a custom Xerces installation) I assume they do. But
ask their support about that and perhaps that DTD problem, if you only
want to do it inside of oXygen.

For Saxon you can use the configuration property like
https://www.saxonica.com/html/documentation10/javadoc/net/sf/saxon/lib/Featur
e.html#XML_PARSER_FEATURE
to set a parser feature, I would know how to do that with Java code but
I am not sure you can do that within oXygen (from a Saxon configuration
file, for instance).

The feature is
http://apache.org/xml/features/nonvalidating/load-external-dtd to be set
to false to "Ignore the external DTD completely", features are
documented at https://xerces.apache.org/xerces-j/features.html

>
> Mark
>
>
> -----Original Message-----
> From:<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Apr 21, 2024 3:07 AM
> To:<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re: [xsl] Ignoring a DTD with document()
>
>
> Am 21.04.2024 um 04:06 schrieb Mark Giffinm1879@xxxxxxxxxxxxx:
>> Thanks Michael,
>>
>> I'm using Saxon-PE 10.6 from inside Oxygen v24.1. I don't know what
>> XML parser is used in this setup, I assume Xalan.
>
> Xalan is an XSLT 1 processor, not an XML parser. Xerces is an XML parser.

Current Thread