Actions
Bug #4294
closedUsing -x:org.ccil.cowan.tagsoup.Parser with .NET Transform.exe and Saxon 9.8 gives error XTSE0150: Namespace for stylesheet element should be http://www.w3.org/1999/XSL/Transform
Start date:
2019-08-21
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:
Description
I have run into an odd problem, using the .NET version of Saxon 9.8.0.12 EE, when I try to use the TagSoup parser that it has included setting the -x:org.ccil.cowan.tagsoup.Parser
on the command line to Transform.exe
to be able to parse a not well-formed input it doesn't run but instead gives me an error on the XSLT:
Saxon-EE 9.8.0.12N from Saxonica
.NET 4.0.30319.42000 on Microsoft Windows NT 6.2.9200.0
Using license serial number V....
Using parser org.ccil.cowan.tagsoup.Parser
URIResolver.resolve href="file:/C:/SomePath/identity.xsl" base="null"
Using parser org.ccil.cowan.tagsoup.Parser
Static error at xsl:stylesheet on line 1 column 1 of identity.xsl:
XTSE0150: Namespace for stylesheet element should be http://www.w3.org/1999/XSL/Transform
Namespace for stylesheet element should be http://www.w3.org/1999/XSL/Transform
The stylesheet is an XSLT stylesheet like the simplest one below and runs fine with Saxon (including the .NET version) if I don't use the -x:org.ccil.cowan.tagsoup.Parser
:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
<xsl:mode on-no-match="shallow-copy"/>
</xsl:stylesheet>
Is there any known issue that Saxon .NET wrongly applies the TagSoup parser to the XSLT or why does it raise that error?
Does this issue also occur in Saxon 9.9?
Please register to edit this issue
Actions