|
Subject: Re: [xsl] Newbie Q - transformation From: Christoph Naber <dio2000@xxxxxxx> Date: Sun, 26 Aug 2007 18:09:20 +0200 |
Hello John,
you would us very much if you supply some more information.
- XSLT Version
- Used stylesheet-processor
When you use XSLT 1.0, it would possibly be enough to do something like:
<xsl:template match="plus">
<xsl:copy>
<xsl:copy-of select="preceding-sibling::node()[1][self::a]" />
<xsl:copy-of select="following-sibling::node()[1][self::b]" />
</xsl:copy>
</xsl:template>
Greetings
Christoph
John Smith schrieb:
> Hello,
>
> how can I transform this:
>
> <a/>
> <plus/>
> <b/>
>
> to this:
> <plus>
> <a/>
> <b/>
> </plus>
>
> Thanks,
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Newbie Q - transformation, John Smith | Thread | Re: [xsl] Newbie Q - transformation, Martin Honnen |
| [xsl] Newbie Q - transformation, John Smith | Date | Re: [xsl] Newbie Q - transformation, Martin Honnen |
| Month |