Project

Profile

Help

output documents relative to "base output URI"

Added by Dieter Stüken over 11 years ago

I'm using Saxon to convert a directory tree of XML documents one by one. For a special case i want to write additional output file(s) using xsl:result-document now. Fortunately there is a concept of a "base output URI", so i may even use a relative URL.

Unfortunately this did not work as expected as soon as i try to use the compiled template repeatedly within different directories. After a look into the source i found the Controller maintains a private variable @principalResultURI@ which is properly reset for each transformation. But finally an other variable @cookedPrincipalResultURI@ is used, which is not reset for each new transformation pass :-(.

So all my output goes to the output directory initially used. Is it intended to work this way?

A workaround for me is to set up some xsl:param to denote the output directory....

Dieter.


Please register to reply