Is there any way to set parser features for a transformation scenario?
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 102
- 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?
I was wondering whether oXygen somewhere/somehow selectively allows me to set such a parser feature for an XSLT or XQuery transformation scenario?
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: Is there any way to set parser features for a transformation scenario?
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
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
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 102
- 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.
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.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "non-existing.dtd">
<root>
<foo>bar</foo>
</root>
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.
-
- Posts: 102
- 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?
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: Is there any way to set parser features for a transformation scenario?
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.
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
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service