DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5533>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5533

redirect doesn't work in the cmdline interface





------- Additional Comments From [EMAIL PROTECTED]  2001-12-20 23:57 
-------
It is still a problem with xalan 2.2.D14.

The redirect output files files are located in the same directory as the source 
htm files now. So they were created, but not where I expected them to be. 

I had a look at the code org.apache.xalan.xslt.Process. 

The StreamResult is created with the following code fragment
...
        StreamResult strResult;

        if (null != outFileName)
        {
          strResult = new StreamResult(new FileOutputStream(outFileName));
            *****
        }
...

This strResult is handed over to transform later:
...
                serializer.transform(new DOMSource(outNode), strResult);
...

I think it should work if you add a 
StreamResult.setSystemId(outFileName) 
at the place I marked with "*****"

The system can not determine the base directory, because it gets an 
OutputStream. The OutputStream doesn't know anything about pathes.

After looking at the redirect code I found out, that the redirect files go to 
the source-xml file directory, if it's not possible to determine the base 
directory of the output target.

The documentation of rediorect is quite good, but you could enhance it, if you 
mention that if it fails to determine the output directory, the redirected 
files will be located in the directory of the source xml file.

Thanks,

Volkmar

Reply via email to