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

RE: Attribute test

Subject: RE: Attribute test
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Wed, 12 Apr 2000 15:11:59 -0400
RE: Attribute test
Hey mike

What if my priority is not
with numbers, and the letters that
I'm using do not follow an 
ascending or descending order?  

:<xsl:variable name="max-priority">
:   <xsl:for-each select="//@priority">
:      <xsl:sort order="descending" data-type="number"/>
:      <xsl:if test="position()=1"><xsl:value-of select="."/></xsl:if>
:   </xsl:for-each>
:</xsl:variable>
:
:Mike Kay
:

This would not really work, unless I somehow
relate the letters to a number priority.
That would be fine for one attribute, but I have
multiple attributes that are implied and can 
appear, and each one has a certain priority
to which it can place further ristrictions.

I thought that xsl could do functions but I have yet
to find an example or any indications in the W3C.

(I know that lotusxsl and javascript can do it, but
I don't want that)

Eddy


 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.