Project

Profile

Help

Bug #5376

open

Saxon EE 11.2 "TransformToString()" produces JET RUNTIME with an exit code of 9

Added by Ibrahim Usmani 9 months ago. Updated 9 months ago.

Status:
AwaitingInfo
Priority:
Normal
Category:
C++ API
Start date:
2022-03-08
Due date:
% Done:

0%

Estimated time:
Found in version:
11.2
Fixed in version:
Platforms:

Description

So I've been using "XsltExecutable::TransformtoString()" , it works with most of my xslts , but i have an xslt that produces a JET RUNTIME ERROR and returns with an exit code of 9.

I've searched what "exit code 9" means , and it said that it means that the OS is killing the program because I dont have enough memory ?????

This works with "TransformFiletoFile()" and all my other xslts but not this one.

This Xslt is using "xsl:result document" to output multiple files. Ive tried setting "BaseOutputURI()" but it still doesn't work . here is some more info :

Xml size : 192,957 KB

Xslt size (The One That Fails) : 24 KB

Code :

SaxonProcessor* processor = new SaxonProcessor(false);
Xslt30Processor* xslt = processor->newXslt30Processor();

XdmNode* xmlfile = processor->parseXmlFromFile( Xml File );
XsltExecutable* xslte = xslt->compileFromFile( Xslt File );

std::string File = xslte->transformToString();   // Fails here

Output : enter image description here

Example xml file :

<xml>
 <value>5</value>
</xml>

Example xslt file :

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
  <xsl:output method="xml" encoding="utf-8" standalone="yes" indent="yes"/>

  <xsl:template match="/">
    <xsl:message>producing sheet</xsl:message>
    <xsl:result-document href="output.xml">
      <result>
        <value>You put a <xsl:value-of select="/xml/value"/></value>
      </result>
    </xsl:result-document>
  </xsl:template>
</xsl:stylesheet>

Related issues

Related to SaxonC - Bug #5378: The system identifier of the principal output file is unknownRejectedO'Neil Delpratt2022-03-08

Actions

Please register to edit this issue

Also available in: Atom PDF