|
Subject: Re: [xsl] re-ordering nodes From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Wed, 19 Dec 2001 11:02:36 +0000 |
Hello Srini,
> The goal is to re-group all the <o> nodes at the first level from
> the root node. The relative order is not so much of a concern at
> this time.
You can select all the o elements in your source document, at whatever
level, with:
//o
You can copy all of them with:
<xsl:copy-of select="//o" />
So possibly you want something like:
<xsl:template match="list">
<list>
<xsl:copy-of select="//o" />
</list>
</xsl:template>
If you wanted to change the content of the o elements, you should
apply templates to them instead:
<xsl:apply-templates select="//o" />
And have the template work out what to do with them.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] re-ordering nodes, Srinivasan Guruswami | Thread | Re: [xsl] re-ordering nodes, Srinivasan Guruswami |
| Re: [xsl] Converting attributes to , Jeni Tennison | Date | Re: [xsl] Use of XSLT to Transform , Jeni Tennison |
| Month |