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

Re: concatenation of sibling names

Subject: Re: concatenation of sibling names
From: "Joerg Heinicke" <joerg.heinicke@xxxxxx>
Date: Tue, 12 Feb 2002 20:55:45 +0100
xsl value of concatenation
> <xsl:template match="db/*">
>     <xsl:for-each select="previous-sibling::*">
>         <xsl:value-of select="name()"/>
>         <xsl:text> </xsl:text>
>     </xsl:for-each>
>     <xsl:for-each select="following-sibling::*">
>         <xsl:value-of select="name()"/>
>         <xsl:text> </xsl:text>
>     </xsl:for-each>
> </xsl:template>

> Yes, both solutions presented so far on the list are fine, but as
> I said in my original post I am interested in storing the results
> of the concatenation in a parameter to use later in an XPath expression
> [as opossed to just simply outputting it].
> Is that feasible with <xsl:param>?

<xsl:template match="db/*">
    <xsl:param name="param">
        <xsl:for-each select="previous-sibling::* | following-sibling::*">
            <xsl:value-of select="concat(name(),' ')"/>
    <xsl:value-of select="$param"/>

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

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.