This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
preceding-sibling
- To: "Xsl-List (E-mail)" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] preceding-sibling
- From: "Borca, Olivier" <Olivier dot Borca at softplumbers dot com>
- Date: Tue, 13 Mar 2001 11:14:59 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
- Thread-Index: AcCrpnVn1y5staiAQvWxWOulPKTByg==
- Thread-Topic: preceding-sibling
Hi,
<xsl:element name="{preceding-sibling::foo[position()=1]/@type}" />
isn't that supposed to create a 'foo' element which has the name of the
'type' attribute of the previous 'foo' element ?
I mean... let's assume that my current node is the 2nd 'foo' node of an
element.
I want to create a node which name is the value of the 'type' attribute
of the previous 'foo' element.
It doesn't work and I took from the W3C site...
Thx again for answering so fast,
Olivier
--------------------------------------------------
Olivier Borca
SoftPlumbers Engineer (Geneva)
Tel: (+4122) 8491003
E-Mail: olivier.borca@softplumbers.com
--------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list