Error from 2-in-1 detect list sheet / Saxon version issue
@wendell I've got a question I'm stuck on for you:
I modified the itemize-lists
sheet to add these detected itemized lists and wrap them in ol
s. I also chained the two other sheets into one DETECT-ITEMIZE-lists.xsl
sheet. That works in the IDE but not with my scripts. It seems to be a Saxon version issue: the IDE uses Saxon-HE 9-8-0-12, but the scripts use SaxonHE 9-8-0-1.
Using the original SaxonHE 9-8-0-1 processor with the scripts, I get this error:
Error at char 12 in xsl:variable/@select on line 42 column 48 of DETECT-ITEMIZE-lists.xsl:
FOXT0002: The transform option xslt-version is higher than the XSLT version supported by
this processor
at xsl:apply-templates (file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../applications/htmlevator/applications/list-detect/DETECT-ITEMIZE-lists.xsl#28)
processing /xsw:transform
The transform option xslt-version is higher than the XSLT version supported by this processor
Next, by swapping in 9-8-0-12 or higher in the scripts, the above complaint goes away, but then I get a new one about the UCP cleanups, whic doesn't process:
Error at char 8 in xsl:sequence/@select on line 283 column 79 of ucp-text-macros-new.xsl:
FORX0002: Syntax error at char 8 in regular expression: Expected '{' after \112
at xsl:apply-templates (file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../applications/htmlevator/applications/ucp-cleanup/ucp-text-macros-new.xsl#269)
processing xsw:sequence/xsw:match[5]
at xsl:apply-templates (file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../applications/htmlevator/applications/ucp-cleanup/ucp-text-macros-new.xsl#503)
processing xsw:sequence
at xsl:apply-templates (file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../applications/htmlevator/applications/ucp-cleanup/ucp-text-macros-new.xsl#269)
processing sequence/munge-quotes[1]
at xsl:apply-templates (file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../applications/htmlevator/applications/ucp-cleanup/ucp-text-macros-new.xsl#186)
processing sequence
in built-in template rule for /html/body[1]/div[1]/p[1] in the unnamed mode
in built-in template rule for /html in the unnamed mode
Syntax error at char 8 in regular expression: Expected '{' after \112
Error on line 1 column 1 of List_test_2-11UCPTEXTED.xhtml:
SXXP0003: Error reported by XML parser: Premature end of file.
org.xml.sax.SAXParseException; systemId: file:/Users/atheg/Desktop/lists_develop/recent_commit/test/XSweet_runner_scripts/XSweet-master-36ec4971e6213e2891146e67b2be5efe570a4484/scripts/../outputs/lists/List_test_2-11UCPTEXTED.xhtml; lineNumber: 1; columnNumber: 1; Premature end of file.
What I've done for the moment, to get it working (and it seems to), is remove the offending line (40) from the DETECT-ITEMIZE-lists.xml
sheet, and stick with 9-8-0-1:
'xslt-version' : xs:decimal($xslt-spec/@version),
2 questions:
- What have I broken by doing this? :)
- Any thoughts on the best way to fix the errors so I can add this back in? Probably by updating Saxon and the UCP macro sheet?
Thanks Wendell.