Using Xalan-J in JZOS
Posted: Mon Feb 02, 2009 8:03 am
Hi.
I´m trying to execute a XSL transformation in JZOS but am rewarded with in STDERR.
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:
What I am trying to do is to process a xml document generated by a set of Rexx-procs in a sequential FB/80 dataset with a stylesheet residing in USS. The result of the transformation is published as a wiki-page (on another server).
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:
But unfortunately the wiki page is empty.
What I feed into the transformer is:
Does anybody have any idea on what I´m doing wrong, it would be nice to, if possible, run this process in its entirely on z/Os.
Regards Lars
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