HTML5 transformation using XSL fails: The entity "auml" was referenced, but not declared
Posted: Tue Dec 03, 2024 1:55 pm
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>
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>