HTML5 transformation using XSL fails: The entity "auml" was referenced, but not declared

lbo
Posts: 6
Joined: Tue Jul 23, 2019 3:54 pm

HTML5 transformation using XSL fails: The entity "auml" was referenced, but not declared

Post by lbo »

I'm trying to use Oxygen XML Editor 25.1 as Eclipse plugin to perform an XSL transformation on a fairly simple HTML5 source document. In other words, I'm trying to do in the IDE what works trivially from the command line with Saxon-HE using the following shell command:

java -cp 'Saxon-HE-12.5.jar:xmlresolver-6.0.11.jar:tagsoup-1.2.1.jar' net.sf.saxon.Transform -x:org.ccil.cowan.tagsoup.Parser -s:$HOME/xml/in.html -xsl:$HOME/xml/transform.xsl

To achive the same In OxygenXML, I added the file: URL to the tagsoup.jar as an extension in my transformation scenario, then created a Saxon configuration file as shown below and added that also in the transformation scenario. I'm not getting any indication as to whether that parser class can be successfully loaded at runtime or not; I tried with an invalid class name as well, the output (see below) never changes.

When executing the scenario, I always get the following error:
The entity "auml" was referenced, but not declared.

How comes?

My saxon-config.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://saxon.sf.net/ns/configuration" edition="PE">
<global parser="org.ccil.cowan.tagsoup.Parser"/>
</configuration>
Mircea
Posts: 142
Joined: Tue Mar 25, 2003 11:21 am

Re: HTML5 transformation using XSL fails: The entity "auml" was referenced, but not declared

Post by Mircea »

Hello,

The input HTML file and the stylesheet will be highly appreciated if provided so we can reproduce the problem on our side.
Please send them at: "support at oxygenxml dot com".

Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Mircea
Posts: 142
Joined: Tue Mar 25, 2003 11:21 am

Re: HTML5 transformation using XSL fails: The entity "auml" was referenced, but not declared

Post by Mircea »

Hello,

The <global parser="org.ccil.cowan.tagsoup.Parser"/> option from the saxon configuration file is the single option that is not correctly handled, since the XML/HTML source is already parsed in the moment of transformation si Saxon, i.e. the option is useless.
I will add an issue to solve this problem in a future version.
I will keep you informed as soon as we will fix it.

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