[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: outputting to original destination from within a

Subject: RE: outputting to original destination from within a result-document
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 21 Jun 2006 09:19:22 +0100
original destination
> 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? 

You can't (any more than you can write attributes to a parent element while
writing a descendant. The output model is strictly hierarchic - it can be
helpful to think of the secondary documents as being extensions of the main
output tree, that just happen to be serialized to a different file.

You have to follow the same principle as with a single output file -
structure the processing logic according to the hierarchic structure of the
output to be produced.

Michael Kay
http://www.saxonica.com/


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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.