Subject: Re: [xsl] concatenation of sibling names From: "Joerg Heinicke" <joerg.heinicke@xxxxxx> Date: Tue, 12 Feb 2002 20:55:45 +0100 |
> <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:for-each> </xsl:param> <xsl:value-of select="$param"/> </xsl:template> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] concatenation of sibling , Peter Davis | Thread | Re: [xsl] concatenation of sibling , Thomas B. Passin |
Re: [xsl] PDF Conversion, Joerg Heinicke | Date | [xsl] CALS Table to PDF, Paul Terray |
Month |