Is there any way to set parser features for a transformation scenario?

Here should go questions about transforming XML with XSLT and FOP.
Martin Honnen
Posts: 99
Joined: Tue Aug 19, 2014 12:04 pm

Is there any way to set parser features for a transformation scenario?

Post by Martin Honnen »

Apache Xerces has parser features documented in https://xerces.apache.org/xerces-j/features.html, so for instance setting http://apache.org/xml/features/nonvalid ... ternal-dtd to false ignores the external DTD completely.

I was wondering whether oXygen somewhere/somehow selectively allows me to set such a parser feature for an XSLT or XQuery transformation scenario?
Mircea
Posts: 134
Joined: Tue Mar 25, 2003 11:21 am

Re: Is there any way to set parser features for a transformation scenario?

Post by Mircea »

Hello Martin,

Have you tried setting in the 'Edit Scenario" Dialog the "Advanced Options" for the Saxon 12.3 transformer ?
There is a check box called: DTD validation if the source ("-dtd") that can be switched "off".

Hope this helps,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Martin Honnen
Posts: 99
Joined: Tue Aug 19, 2014 12:04 pm

Re: Is there any way to set parser features for a transformation scenario?

Post by Martin Honnen »

Thanks for your reply but not doing DTD validation or ignoring the external DTD are different issues, if I have e.g.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "non-existing.dtd">
<root>
    <foo>bar</foo>
</root>
it doesn't help to set DTD validation to off, I nevertheless get an IO error by the parser that the file non-existing.dtd was not found and the whole transformation fails.

When I write Java code to set the parser feature I mentioned the intent to load the DTD is not made and then my transformation runs through.

The question is whether oXygen allows me in its settings/configurations for parsing and/or transformation scenarios to set such a parser feature.
Martin Honnen
Posts: 99
Joined: Tue Aug 19, 2014 12:04 pm

Re: Is there any way to set parser features for a transformation scenario?

Post by Martin Honnen »

Is there no way to set a parser feature? Is it possible to add that as a feature request for future oXygen versions?
Mircea
Posts: 134
Joined: Tue Mar 25, 2003 11:21 am

Re: Is there any way to set parser features for a transformation scenario?

Post by Mircea »

Hello Martin,

Currently there is no way to set a parser feature for the transformation scenario.
We will take this into consideration, and let you know if it will be implemented.

Regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply