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

How do I insert a result tree fragment into the result tree?

Subject: How do I insert a result tree fragment into the result tree?
From: Steve Dahl <sdahl@xxxxxxxxxxx>
Date: Sat, 24 Apr 1999 16:30:11 -0400
insert tree into tree
Using the latest release of XT, if I have templates such as:

    <xsl:template name="test">
        <xsl:param-variable name="body"/>
        <xsl:value-of select="$body"/>
    </xsl:template>

    <xsl:template match="/">
        <root>
            <xsl:call-template name="test">
                <xsl:param name="body">
                    <x>value of x</x>
                </xsl:param>
            </xsl:call-template>
        </root>
    </xsl:template>

...my result document looks like this:

    <root>value of x</root>

The <x> and </x> tags have been stripped out. That's not surprising,
given the definition of xsl:value-of, but I can't find an action in the
WD, other than xsl:value-of, that would let me insert the complete
result tree of the $body parameter into the template. Based on how
macros worked in the previous XSL draft, I thought something like this
might have worked:

    <xsl:contents name="body"/>

...but I can't find such a thing in the WD. Is there some way of using
the complete value of the parameter in the latest release?

--
- Steve Dahl
sdahl@xxxxxxxxxxx



 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.