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

Pass result tree to template w/o using param?

Subject: Pass result tree to template w/o using param?
From: Evan Easton <evan@xxxxxxxxxxx>
Date: Fri, 13 Aug 1999 13:08:11 -0500
xsl using params
Is there a way using April or July draft to pass the result tree to a
named template without having to pass it as a param?  What I'm trying to
achieve is a consistent look in the HTML that we are outputting.  So I
might have a template named table for outputting tables.  Here's what
I'm doing now:

	...
	<xsl:call-template name="table">
		<xsl:param name="contents">
			...
		</xsl:param>
	</xsl:call-template>
	...

<xsl:template name="table">
	<xsl:param name="contents"/>
	<TABLE BORDER="0" CELLPADDING="3" CELLSPACING="0">
		<xsl:copy-of select="$contents"/>
	</TABLE>
</xsl:template>


	

I'd like, for the sake of brevity, to be able to have the code look more
like this, but either it isn't supposed to be possible OR the XSLT
processor (LotusXSL 0.17.4) I'm using doesn't support it yet. 

	...
	<xsl:call-template name="table">
		...
	</xsl:call-template>
	...

<xsl:template name="table">
	<TABLE BORDER="0" CELLPADDING="3" CELLSPACING="0">
		<xsl:copy-of select="????????"/>
	</TABLE>
</xsl:template>


ANy thoughts.  BTW, I don't want to rely on CSS to get the consistent
look because we have users with really old browsers.

Thanks,
Evan


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.