Project

Profile

Help

AssertionError: unknown cardinality value

Added by Anonymous over 19 years ago

Legacy ID: #3122201 Legacy Poster: marcvc (marcvc)

Michael, it's a negative scenario, not at all blocking, and possibly you're aware of it. With Saxon 8.4, the query 1 eq (1 to 10) results in: Exception in thread "main" java.lang.AssertionError: unknown cardinality value at net.sf.saxon.value.Cardinality.toString(Cardinality.java:136) at net.sf.saxon.expr.TypeChecker.staticTypeCheck(TypeChecker.java:309) at net.sf.saxon.expr.ValueComparison.analyze(ValueComparison.java:60) at net.sf.saxon.query.XQueryExpression.<init>(XQueryExpression.java:60) at net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:72) at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:254) at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:282) at net.sf.saxon.Query.doMain(Query.java:341) at net.sf.saxon.Query.main(Query.java:75) Thanks, Marc


Replies (1)

RE: AssertionError: unknown cardinality value - Added by Anonymous over 19 years ago

Legacy ID: #3122496 Legacy Poster: Michael Kay (mhkay)

Thanks, now fixed. It was failing while constructing the error message. The cardinality value in question was "more than one", which only occurs in the case of values where the exact number of items is known at compile time. Michael Kay

    (1-1/1)

    Please register to reply