xsl-list
[Top] [All Lists]

Re: [xsl] Copy results

2008-07-07 23:47:59
Am 08.07.2008 um 01:29 schrieb Steven Ericsson-Zenith:

Dear list,

What is the optimal way to copy a results document? So, what one would like perhaps is:

<xsl:result-document
               href="file1.xhtml,file2.xhtml">

</xsl:result-document>

Is the optimal way to do this to assign the page output to a variable and then dump it in two consecutive result-documents?

I would not use a variable, but a named template which is called twice. In many situations the XSLT performance is so good, you would not notice any delay.

I would say the general way is to avoid redundancies like this. And I guess this request has nothing to do with the XML content, but rather some obscure requirements down the line. So, do not burden your XSLT with such issues. Just use a command line command to duplicate the file when needed.

- Michael

--
_______________________________________________________________
Michael Müller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lösungen und Training, FrameScript, XML/XSL, Unicode
<http://cap-studio.de/> -- Tel. +49 (9131) 28747




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>