Subject: Re: [xsl] Copy results From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 08 Jul 2008 17:31:18 -0400 |
In fact, I was after rather more specific information: unrelated to any opinion about what I "should" be doing. I essentially asked for the optimal way to place result-document output in two locations. So far, I have been offered no quantified reason for not doing what I propose that actually would impact scaling or robustness.
<xsl:variable name="locations" as="element()*"> <loc>file1.xml</loc> <loc>file2.xml</loc> <loc>file3.xml</loc> </xsl:variable> <xsl:apply-templates select="$locations" mode="make-file"> <xsl:with-param name="contents" select="$contents"/> </xsl:apply-templates>
<xsl:template match="loc" mode="make-file"> <xsl:param name="contents" as="element()?"/> <xsl:if test="exists($contents)"> <xsl:result-document href="{.}"> <xsl:copy-of select="$contents"/> </xsl:result-document> </xsl:if> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Copy results, Steven Ericsson-Zeni | Thread | Re: [xsl] Copy results, Andrew Welch |
Re: [xsl] Copy results, Eliot Kimber | Date | Re: [xsl] Copy results, Steven Ericsson-Zeni |
Month |