I´m trying to execute a XSL transformation in JZOS but am rewarded with
Code: Select all
SystemId Unknown; Line #-1; Column #-1; Premature end of file.
I can read the XML document and dump it to System.out thereby verifying that the file is accessible. The first line, by the way, is:
Code: Select all
<?xml version="1.0" encoding="ebcdic-cp-se"?>
This process works allright when I´m executing on a client (windows) but when I deploy the application on z/Os I get the above error. The application ends with rc=0:
Code: Select all
JVMJZBL1015N MVS commands are DISABLED
JVMJZBL1023N Invoking se.swedbank.cmnbaseline.Transformbase.main()...
JVMJZBL1024N se.swedbank.cmnbaseline.Transformbase.main() completed.
JVMJZBL1021N JZOS batch launcher completed, return code=0
But unfortunately the wiki page is empty.
What I feed into the transformer is:
Code: Select all
Transformer transformer = tFactory.newTransformer(new StreamSource(
"/u/s000lbj/CMN2Wiki/baseline2wiki.xsl"));
ZFile tZosFile = new ZFile("//'" + aXMLFile + "'",
"rb,type=record,noseek");
transformer.transform(new StreamSource(tZosFile.getInputStream()),
tOut);
Regards Lars