Actions
Bug #4693
closedError message is different when comparing Saxon-HE with Saxon-PE.
Start date:
2020-08-25
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:
Description
I am using test file "conflict-resolution-0702.xsl".
I am calling Saxon-HE from the command line, like this:
- java.exe -jar saxon-he-10.1.jar -xsl:conflict-resolution-0702.xsl -s:whatever.xml
I get this warning:
Warning at procedure xsl:unnamed on line 0
XTDE0540 Ambiguous rule match for /root
Matches both "element()" on line 16 of file:///C:/folder/conflict-resolution-0702.xsl
and "(element()|(comment()|(text()|processing-instruction())))" on line 20 of << THIS LINE IS DIFFERENT
file:///C:/folder/conflict-resolution-0702.xsl
Then i cali Saxon-PE from the command line, like this:
- java.exe -jar saxon-pe-10.1.jar -xsl:conflict-resolution-0702.xsl -s:whatever.xml
I get this warning:
Warning at procedure xsl:unnamed on line 0
XTDE0540 Ambiguous rule match for /root
Matches both "element()" on line 16 of file:///C:/folder/conflict-resolution-0702.xsl
and "(processing-instruction()|(text()|(element()|comment())))" on line 20 of << THIS LINE IS DIFFERENT
file:///C:/folder/conflict-resolution-0702.xsl
These warning look the same but they are slightly different. Is there a reason for this, is this an error?
This is the content of conflict-resolution-0702.xsl:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<?spec xslt#unprefixed-qnames?>
<!-- Testing xsl:xpath-default-namespace -->
<xsl:template match="u:doc" xmlns:u="http://some.uri/">
<out xsl:xpath-default-namespace="http://some.uri/">
<xsl:apply-templates select="foo"/>
</out>
</xsl:template>
<xsl:template match="u:foo" xmlns:u="http://some.uri/">
<xsl:text>Match-of-qualified-name</xsl:text>
</xsl:template>
<xsl:template match="*">
<xsl:text>Match-of-wildcard</xsl:text>
</xsl:template>
<xsl:template match="node()">
<xsl:text>Match-of-node-type</xsl:text>
</xsl:template>
</xsl:stylesheet>
This is the content of conflict-resolution-0702.xsl:
<root></root>
Please register to edit this issue
Actions