Project

Profile

Help

Bug #3835

closed

Saving a compiled XSL throws NullPointerException

Added by Christophe Marchand over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT export
Sprint/Milestone:
-
Start date:
2018-07-04
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

Saving a compiled XSL generates a NullPointerException :

Caused by: java.lang.NullPointerException
    at net.sf.saxon.trans.rules.Rule.export (Rule.java:164)
    at net.sf.saxon.trans.SimpleMode$5.processRule (SimpleMode.java:1051)
    at net.sf.saxon.trans.SimpleMode.processRuleChain (SimpleMode.java:1153)
    at net.sf.saxon.trans.SimpleMode.processRules (SimpleMode.java:1085)
    at net.sf.saxon.trans.SimpleMode.processRules (SimpleMode.java:1067)
    at net.sf.saxon.trans.SimpleMode.exportTemplateRules (SimpleMode.java:1056)
    at com.saxonica.ee.trans.ModeEE.exportTemplateRules (ModeEE.java:302)
    at net.sf.saxon.trans.Mode.export (Mode.java:578)
    at net.sf.saxon.expr.Component.export (Component.java:205)
    at com.saxonica.ee.trans.StylesheetPackageEE.export (StylesheetPackageEE.java:104)
    at com.saxonica.ee.trans.StylesheetPackageEE.export (StylesheetPackageEE.java:43)
    at net.sf.saxon.s9api.XsltExecutable.export (XsltExecutable.java:147)
    at net.sf.saxon.s9api.XsltExecutable.export (XsltExecutable.java:124)

Project is quite complex, but is made available to reproduce problem. See pom.xml:40 where the xsl to compile is defined. It is src/main/xsl/sas/dalloz/ouvrages/ouvragesDalloz2editorialEntity.xsl.

Complete Java code is available here : https://github.com/cmarchand/xslCompiler-maven-plugin/blob/master/src/main/java/top/marchand/xml/maven/plugin/xsl/AbstractCompiler.java row 95

This problem was first exposed on Saxon mailing list : https://saxon.markmail.org/search/?q=#query:%20list%3Anet.sourceforge.lists.saxon-help+page:2+mid:3fwkboxydrvwasi3+state:results


Files

compile-to-sef-bug-cmarchand.zip (630 KB) compile-to-sef-bug-cmarchand.zip A complete project to reproduce problem Christophe Marchand, 2018-07-05 15:23
compile-to-sef-bug-no-mvn_plugin.zip (639 KB) compile-to-sef-bug-no-mvn_plugin.zip Christophe Marchand, 2018-07-09 12:51

Please register to edit this issue

Also available in: Atom PDF