Hi Norman,

I belive this is a known bug, which has been fixed in the Saxon 9.4.0.2 maintenance release.

See bug entry:

http://dev.saxonica.com/redmine/issues/196

kind regards,
O'Neil

On 12/02/12 16:12, Norman Walsh wrote:
Hi,

Does this look like a known bug, or should I try to construct a test case
to reproduce it?

----------------------------------------------------------------------
XML Calabash version 1.0.2 (for Saxon 9.4.x), an XProc processor.
Running on Saxon version 9.4.0.1, EE edition.
Copyright (c) 2007-2012 Norman Walsh
See http://xmlcalabash.com/

Failed while compiling function db:tgroup
java.lang.IllegalArgumentException
	at com.saxonica.bytecode.converter.StringToUntypedAtomicCompiler.compileToPrimitive(StringToUntypedAtomicCompiler.java:70)
	at com.saxonica.bytecode.CastExpressionCompiler.compileToPrimitive(CastExpressionCompiler.java:66)
	at com.saxonica.bytecode.util.CompilerService.compileToPrimitive(CompilerService.java:736)
	at com.saxonica.bytecode.AtomicSequenceConverterCompiler.compileToPrimitive(AtomicSequenceConverterCompiler.java:108)
	at com.saxonica.bytecode.util.CompilerService.compileToPrimitive(CompilerService.java:736)
	at com.saxonica.bytecode.ChooseCompiler.compileToPrimitive(ChooseCompiler.java:139)
	at com.saxonica.bytecode.util.CompilerService.compileToPrimitive(CompilerService.java:736)
	at com.saxonica.bytecode.converter.StringToUntypedAtomicCompiler.compileToPrimitive(StringToUntypedAtomicCompiler.java:73)
	at com.saxonica.bytecode.converter.StringToUntypedAtomicCompiler.compileToItem(StringToUntypedAtomicCompiler.java:52)
	at com.saxonica.bytecode.CastExpressionCompiler.compileToItem(CastExpressionCompiler.java:38)
	at com.saxonica.bytecode.util.CompilerService.compileToItem(CompilerService.java:684)
	at com.saxonica.bytecode.LetExpressionCompiler.compileCommonExpr(LetExpressionCompiler.java:290)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:67)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:75)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.BlockCompiler.compileToPush(BlockCompiler.java:56)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:75)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.BlockCompiler.compileToPush(BlockCompiler.java:56)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.ElementCreatorCompiler.compileToPush(ElementCreatorCompiler.java:116)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:75)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:75)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.LetExpressionCompiler.compileToPush(LetExpressionCompiler.java:75)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.BlockCompiler.compileToPush(BlockCompiler.java:56)
	at com.saxonica.bytecode.util.CompilerService.compileToPush(CompilerService.java:671)
	at com.saxonica.bytecode.util.CompilerService.compileToByteCode(CompilerService.java:582)
	at com.saxonica.expr.ee.OptimizerEE.compileToByteCode(OptimizerEE.java:1322)
	at net.sf.saxon.style.XSLTemplate.optimize(XSLTemplate.java:454)
	at net.sf.saxon.style.PrincipalStylesheetModule.compileStylesheet(PrincipalStylesheetModule.java:807)
	at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(PreparedStylesheet.java:360)
	at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:207)
	at net.sf.saxon.PreparedStylesheet.compile(PreparedStylesheet.java:106)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:249)
	at com.xmlcalabash.library.XSLT.run(Unknown Source)
	at com.xmlcalabash.runtime.XAtomicStep.run(XAtomicStep.java:366)
	at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source)
	at com.xmlcalabash.runtime.XPipeline.run(Unknown Source)
	at com.xmlcalabash.drivers.Main.run(Unknown Source)
	at com.xmlcalabash.drivers.Main.main(Unknown Source)
SEVERE: java.lang.IllegalArgumentException
SEVERE: Failed to compile stylesheet. 1 error detected.
SEVERE: Pipeline failed: net.sf.saxon.s9api.SaxonApiException: Failed to compile stylesheet. 1 error detected.
SEVERE: Underlying exception: javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet.

                                        Be seeing you,
                                          norm



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 


--
O'Neil Delpratt
Software Developer, Saxonica Limited
Email: oneil@saxonica.com
Tel: +44 118 946 5894
Web: http://www.saxonica.com