Project

Profile

Help

Error while generating SEF file

Added by Alvin Alegría over 3 years ago

After running my xsl file on multiple online testers, I decided to set up my NodeJS server using SaxonJS. The thing is I keep getting an error while trying to generate the SEF file and therefore the file I get as output is empty

The command I ran is:

xslt3 -t -xsl:ReqFiles/solution.xsl -export:ReqFiles/solution.sef.json

And the error I get is:

Transformation failure: Error XTDE0044 No source input supplied for apply-templates invocation

As I stated, I've tested my xsl file on multiple online tools and none of them failed nor throw warnings

Any kind of help would be appreciated


Replies (3)

Please register to reply

RE: Error while generating SEF file - Added by Michael Kay over 3 years ago

If you want to compile the stylesheet to a SEF file, but don't want to execute it, then add the -nogo option to suppress execution. (You're not seeing any static -- compile-time -- errors, but a run-time error when the stylesheet executes without a source document.

Error while generating SEF file - Added by John Lumley over 3 years ago

The error comes from Saxon JS trying to execute the SEF it generated [export is actually a side-effect). Use the option -nogo to suppress the subsequent execution attempt.

Sent from my iPad

On 5 Aug 2020, at 22:16, Saxonica Developer Community wrote:



RE: Error while generating SEF file - Added by Alvin Alegría over 3 years ago

Thanks for the quick reply

Got it, now when I add the nogo flag I dont get any errors/warnings but the SEF file is empty.

Any idea why this is happening?

    (1-3/3)

    Please register to reply