Project

Profile

Help

Bug #3199

closed

IllegalStateException using a sef package when a namespace contain a space character

Added by Rémi LEONARD about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
XSLT 3.0 packages
Sprint/Milestone:
-
Start date:
2017-04-12
Due date:
% Done:

100%

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

Description

Hello,

for a project i want to use the xsl in a sef package.

If a namespace contains a space character, the xsl is usable but not the sef. It give the following stacktrace

java.lang.IllegalStateException: ns=xsl=http://www.w3.org/1999/XSL/Transform xs=http://www.w3.org/2001/XMLSchema xd=http://www.oxygenxml.com/ns/doc/xsl bugsef=http://www.mybug.com/ spacebug/

    at com.saxonica.trans.PackageLoaderPE.makeRetainedStaticContext(PackageLoaderPE.java:981)

    at com.saxonica.trans.PackageLoaderPE.loadExpression(PackageLoaderPE.java:936)

    at com.saxonica.trans.PackageLoaderPE.readMode(PackageLoaderPE.java:702)

    at com.saxonica.trans.PackageLoaderPE.readComponents(PackageLoaderPE.java:403)

    at com.saxonica.trans.PackageLoaderPE.loadPackageElement(PackageLoaderPE.java:235)

    at com.saxonica.trans.PackageLoaderPE.loadPackageDoc(PackageLoaderPE.java:155)

    at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:246)

    at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:101)

    at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:858)

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

    at net.sf.saxon.Transform.main(Transform.java:77)

Fatal error during transformation: java.lang.IllegalStateException: ns=xsl=http://www.w3.org/1999/XSL/Transform xs=http://www.w3.org/2001/XMLSchema xd=http://www.oxygenxml.com/ns/doc/xsl bugsef=http://www.mybug.com/ spacebug/

If the space is removed, no bug and we can use the sef file.

I join the xslt test case

Regards,

Rémi LEONARD.


Files

bug_sef_namespace.xsl (640 Bytes) bug_sef_namespace.xsl the test case Rémi LEONARD, 2017-04-12 10:29

Please register to edit this issue

Also available in: Atom PDF