Warnings and errors with Saxon 9.9.1.1
XSweet currently ships with Saxon 9.8.0.1. However, upgrading to use 9.9.1.1 causes some warnings and errors.
First, the newest version of Saxon shows the following 3 warnings, twice from handle-notes.xsl
and once in the make-header-escalator-xslt.xsl
sheet:
Warning in xsl:variable/@select on line 38 column 69 of handle-notes.xsl:
SXWN9000: in {div[}:
The keyword 'div' in this context means 'child::div'. If this was intended, use
'child::div' or './div' to avoid this warning.
Warning in xsl:variable/@select on line 51 column 70 of handle-notes.xsl:
SXWN9000: in {div[}:
The keyword 'div' in this context means 'child::div'. If this was intended, use
'child::div' or './div' to avoid this warning.
Warning in xsl:apply-templates/@select in make-header-escalator-xslt.xsl:
SXWN9000: in {div[}:
The keyword 'div' in this context means 'child::div'. If this was intended, use
'child::div' or './div' to avoid this warning.
This is just a noisy warning and doesn't cause any problems, but might be worth addressing.
The ucp-text-macros.xsl
sheet, though, causes a breaking error:
Error evaluating (($original, ...)) in xsl:sequence/@select on line 283 column 79 of ucp-text-macros.xsl:
FORX0002: Syntax error at char 8 in regular expression: Expected '{' after \112. Failed
while atomizing the result of template match="xsw:sequence". Failed while atomizing the
result of template match="xsw:sequence"
In template rule with match="element(Q{http://coko.foundation/xsweet}sequence)" on line 258 of ucp-text-macros.xsl
invoked by xsl:apply-templates at file:/Users/atheg/Desktop/x_demo/koosum/XSweet_runner_scripts/XSweet-master-2edfadb9b06cf13d4f70701da62af809c9d55136/scripts/../applications/htmlevator/applications/ucp-cleanup/ucp-text-macros.xsl#186
In template rule with match="element(Q{http://www.w3.org/1999/xhtml}p)" on line 173 of ucp-text-macros.xsl
invoked by built-in template rule (shallow-copy)
In template rule with match="text()[fn:not(...)]" on line 254 of ucp-text-macros.xsl
Syntax error at char 8 in regular expression: Expected '{' after \112. Failed while atomizing the result of template match="xsw:sequence". Failed while atomizing the result of template match="xsw:sequence"
Error on line 1 column 1 of test-11UCPTEXTED.xhtml:
SXXP0003: Error reported by XML parser: Premature end of file.
org.xml.sax.SAXParseException; systemId: file:/Users/atheg/Desktop/x_demo/koosum/XSweet_runner_scripts/XSweet-master-2edfadb9b06cf13d4f70701da62af809c9d55136/scripts/../outputs/test/test-11UCPTEXTED.xhtml; lineNumber: 1; columnNumber: 1; Premature end of file.
I'll examine further for a fix.