[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Positions

Subject: RE: Positions
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Nov 2001 11:15:00 -0000
RE:  Positions
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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Sent: 13 November 2001 10:35
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.