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

Re: Check the value of a element

Subject: Re: Check the value of a element
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Sep 1999 14:33:02 +0100 (BST)
Re: Check the value of a element
   Is it possible to have anything like this:

   <xsl:template match="/one/two[. > 10]">
     ...
   </xsl:template>

   I want match an element which contain a number and I want to match it only
   if it's value is higher than a certain number.
   How can I do?

   Thanks.

Yes, the example you post is valid xsl syntax and will produce
'...' for every two element that is a child of the document element
(which is called one) and has text content which is a number greater
than 10.

But I assumed you tried something and it didn't work, so perhaps you
asked the wrong question?

David


 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.