It looks like this bug:
 
http://sourceforge.net/tracker/index.php?func=detail&aid=1475681&group_id=29872&atid=397617
 
There's a build of Saxon-SA which I'm pretty sure contains this patch at
 
http://www.saxonica.com/download/patched/871/saxon8sa.jar
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Ryan Puddephatt
Sent: 07 May 2006 12:25
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Exception but I don't know why

Hi,

            I have a stylesheet, which is giving me an exception when running on the latest Saxon, but I don’t know what it is referring to as it doesn’t give me a line number

 

java.lang.NullPointerException

      at net.sf.saxon.expr.AxisExpression.typeCheck(AxisExpression.java:128)

      at net.sf.saxon.expr.PathExpression.typeCheck(PathExpression.java:331)

      at net.sf.saxon.expr.PathExpression.typeCheck(PathExpression.java:310)

      at net.sf.saxon.style.StyleElement.typeCheck(StyleElement.java:980)

      at net.sf.saxon.style.XSLApplyTemplates.validate(XSLApplyTemplates.java:117)

      at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1172)

      at net.sf.saxon.style.StyleElement.validateChildren(StyleElement.java:1205)

      at net.sf.saxon.style.StyleElement.validateSubtree(StyleElement.java:1181)

      at net.sf.saxon.style.XSLStylesheet.preprocess(XSLStylesheet.java:670)

      at net.sf.saxon.PreparedStylesheet.setStylesheetDocument(PreparedStylesheet.java:295)

      at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:127)

      at net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:135)

      at net.sf.saxon.Transform.doTransform(Transform.java:462)

      at com.saxonica.Transform.main(Transform.java:45)

 

Can anyone help with how to debug this?

 

Thanks

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* rpuddephatt@teleflex.com

( 01506 407 110

7  01506 407 108