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

FW: result-document output filename in context of for

Subject: FW: result-document output filename in context of for-each ?
From: <Damian.Clark@xxxxxxxxx>
Date: Fri, 3 Sep 2004 15:02:07 +1000
xsl output filename
Got my head under the hood after an extended break, and I can't see the
problem for all the grease.
Any help is appreciated.

Want to get the value of contextual '@file' attribute as the output filename.
I could put the result-document command inside the for-each loop, but I would
lose results outside of that.

	<xsl:template name="navbar" match="link">
		<xsl:param name="active" select="position()"/>

Wanting to output the results of the template to new file for each node
addressed -->

		<xsl:result-document href="{ $fname }">

How can I access the value of the $fname variable in the context of the
for-each loop below ?
--------------------------------------- -->


				<xsl:variable name="fname">
					<xsl:call-template name="filename">
						<xsl:with-param name="x"

				<tr><td class="nav"><xsl:element
name="ul"><xsl:element name="a">	<xsl:attribute name="href">

<xsl:value-of select="concat('NAV_',$fname)"/>

</xsl:attribute><xsl:attribute name="class">white</xsl:attribute>






		<xsl:apply-templates select="link"/>


Damian Clark
Web Developer, Application Support
Petroleum & Marine Division
Geoscience Australia
+61 2 6249 9336

Current Thread


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.
First Name
Last Name
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.