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

RE: Variables

Subject: RE: Variables
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 13 Feb 2003 11:47:40 -0000
RE:  Variables
> What i want to acheve is:
> 
> if i have the following xml node i.e.
> 
> <><><><><<><><><><><<><><><><<><><><><><
> <names option1="john" option2="peter"/> 
> <><><><><<><><><><><<><><><><<><><><><><
> 
> First of all check if the attribute "option1" exists(How do i 
> do this?), it's not a must it will be there. And if it does, 
> set the variable x = 400 - ( No.of option1 * 10 )
> 
> Given that the variable had been declared earlier.

No, that's not what you want to achieve. That's the method you want to
use to achieve it, which won't work. You've already been told that you
are going to have to change your procedural thinking to solve this
problem. Now tell us what the problem is: what are the inputs and
outputs to your transformation, and how are they related?

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.