[xsl] outputting to original destination from within a result-document

Subject: [xsl] outputting to original destination from within a result-document
From: "Jeff Rosler" <Jeff.Rosler@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Jun 2006 09:18:30 -0600
Hi All,

I am using <xsl:result-document> in my stylesheet (processing with Saxon
8.7). I'd like to output back to my original output document from within
the <xsl:result-document>. Does anyone know of any way to do this? Right
now, I'm assuming I'll just have to do post processing with a second
stylesheet, but I thought I'd post to see if anyone has any good ideas.

My stylesheet is converting a single monolithic XML file to a DITA map
file and also chunking out the content into separate DITA topic files
(using <xsl:result-document>). This is a fine approach, but it doesn't
handle nested sections in my monolithic XML file. When I get to a nested
section (when I'm inside the <xsl:result-document>), I need to create
another topic (new result document), but I also need to add a nested
<topicref> to the DITA map file (original output document). I was trying
to do this in a single XSL (creating the map file and doing the
chunking), but now I think I need to fall back to two separate
stylesheets; one to create the map and one to do the topic chunking.

Can anyone answer my first question or have any other suggestions?

Thanks for any and all responses,

Jeff Rosler

Current Thread