This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Positions
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Positions
- From: "Tanzila Mohammad" <tmohammad at entier-solutions dot com>
- Date: Tue, 13 Nov 2001 11:15:00 -0000
- Reply-to: xsl-list at lists dot mulberrytech dot com
Tom,
I need the list in the following order because it has been requested in that
manner:
ARABIC
CHINESE
TABLE
TABLEAU
CUADRO
As opposed to:
ARABIC
CHINESE
TABLE
CUADRO
TABLEAU
Thanks.
Tanzila
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
TSchutzerWeissmann@uk.imshealth.com
Sent: 13 November 2001 10:35
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Positions
Hi Tanz,
><xsl:if test="./@lang='EN'">
> <xsl:value-of
>select="preceding-sibling::.[@name='number']"/>
> </xsl:if>
The problem here is the . :preceding-sibling is already based on where you
currently are. Instead you need
"preceding-sibling::literal[@name='number']", or since you're using
value-of, "preceding-sibling::*[@name='number']".
The first way gets you the first preceding sibling you want, the second way
gets all of them with 'number' but value-of will only treat the first one.
>Problem 1: I need the positions of "CUADRO" and "TABLEAU" to be reversed
Porqué - I mean, pourquoi?
___
Tom Weissmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list