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

interpolating tree fragments in xslt

  • From: Graydon Hoare <graydon@p...>
  • To: xml-dev@i...
  • Date: Fri, 07 May 1999 21:05:11 -0400

xslt output tree
hey, I've noticed you can pass around output tree fragments in xslt as 
param-variables, which is nice, it's almost like using sosofos again,
but the burning question I have is "how do I interpolate variables of
this type into a template"?

for example, lets say I do this:

<xsl:template match="foo">
 <xsl:call-template name="blue-tabler">
 <xsl:param name="content">
  <b>Beetles</b>, arachnids, and <u>chickens</u>	
 </xsl:param>
 </xsl:call-template>
</xsl:template>

<xsl:template name="blue-tabler">
<xsl:param-variable name="content"/>
 <table bgcolor="blue"><tr><td>

 <!-- what do I do here to access $content? -->

 </td></tr></table>	
</xsl:template>

The problem is probably really simple but I don't see in the xslt spec
anything about interpolating variables of this type into the body of a
template. There's the <xsl:value-of> which will stringify the output
fragment, but aside from that I'm at a loss as to how to make
templates operate on fragments.

Or am I thinking too dsssl-like here?

-graydon

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.