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

Variables and Values

Subject: Variables and Values
From: Julian Voelcker <asp@xxxxxxx>
Date: Tue, 23 Mar 2004 17:48:59 GMT
variables and values
I am trying to replicate some programming logic in my template along 
the following lines:

1. The XML file holds data from a questionnaire.
2. At the beginning of a template I want to test to see if a particular 
question has been answered - if it has it will either be true or false 
- if it hasn't been answered there will be no value.
3. If it hasn't been given a value, I will want to give it one.
4. Further down the template I will want to use the value to determine 
the formatting of content.

OK, now I have been doing some reading on variables and believe the 
that the only way to deal with this is as follows:-
1. Check the XML file to see if the question has been answered and if 
is has, create a variable in the template to hold the value.
2. If the question hasn't been answered, also create the variable and 
give a value.
3. From then on in the document, work from the variable, not the value 
in the XML file.

Does this make sense?

Can you see any pitfalls to this?

-- 
Cheers,

Julian Voelcker
United Kingdom

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.