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

Template to return XML

Subject: Template to return XML
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 16 Oct 2003 22:45:47 -0700
return xml
Hello,

I need a template to return a subset of XML from the xml source.  I'm trying
to populate a variable with this information.  How can I do this?
Example:

<A>
    <B>
        <ASDF/>
        <QWEA/>
        <FEASI/>
    </B>
    <C/>
</A>


So, a template that will return (as an example) <B> and its subset of data.
Something like

<xsl:template name="get_subset_xml">
    .... select the <b> node
</xsl:template>

More importantly, how do I assign a variable to this new subset?
So:

<xsl:variable name="some_subset" select="get_subset_xml"/>

where $some_suset is:
    <B>
        <ASDF/>
        <QWEA/>
        <FEASI/>
    </B>


Is this possible?
Karl


 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.