Skip to content

errors with older versions of Saxon and Oxygen #10

@lueck

Description

@lueck

Errors have been seen on older versions of Oxygen with older versions of Saxon, especially when evaluating milestone-based members.

E.g. on Oxygen 24.1 (Saxon 10.6) there is an error The string "" cannot be cast to a boolean when applying the dts:Document with $tree and $start-$end specified secanrio on xsl/john.xml with tree page-hateoas and start p.1 and end p.1.end.

Changing end to p.2 works as expected.

This can be reproduced on the commandline with Saxon 10.6 in the classpath:

$ target/bin/xslt.sh -?
Saxon-HE 10.6J from Saxonica
...

$ target/bin/xslt.sh -config:saxon.he.xml -s:test/john.xml -xsl:xsl/document.xsl -ea:on tree=page-hateoas start=p.1 end=p.1.end
Error on line 231 column 31 of tree.xsl:
  XTTE0590  The string "" cannot be cast to a boolean
     invoked by xsl:iterate at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/tree.xsl#218
     invoked by xsl:iterate at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/tree.xsl#177
  In template rule with match="citeStructure" on line 166 of tree.xsl
     invoked by built-in template rule (shallow-skip)
     invoked by xsl:apply-templates at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/tree.xsl#93
at function dts:members on line 69 column 0 of tree.xsl:
     invoked by unknown caller (class net.sf.saxon.value.MemoClosure)
at function dts:members on line 69 column 0 of tree.xsl:
     invoked by unknown caller (class net.sf.saxon.value.MemoClosure)
at function dts:members on line 69 column 0 of tree.xsl:
     invoked by function call at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/document.xsl#235
at function dts:cut-start-end on line 233 column 0 of document.xsl:
     invoked by function call at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/document.xsl#124
at template document on line 104 column 104 of document.xsl:
     invoked by xsl:call-template at file:/home/clueck/src/scdh/tei-processing/dts-transformations/xsl/document.xsl#101
  In template rule with match="document-node(element(TEI))" on line 96 of document.xsl
The string "" cannot be cast to a boolean

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions