xsl-list
[Top] [All Lists]

Re: [xsl] Newbie Q - transformation

2007-08-26 09:12:48
John Smith wrote:

how can I transform this:

<a/>
<plus/>
<b/>

to this:
<plus>
<a/>
<b/>
</plus>

  <xsl:template match="plus">
    <xsl:copy>
<xsl:copy-of select="preceding-sibling::a[1] | following-sibling::b[1]"/>
    </xsl:copy>
  </xsl:template>

If you need help to fit that template into a complete stylesheet then show us the ancestor elements of those elements.


--

        Martin Honnen
        http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>