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

Re: Variables and Values

Subject: Re: Variables and Values
From: Julian Voelcker <asp@xxxxxxx>
Date: Wed, 24 Mar 2004 08:00:04 GMT
julian values
Hi Wendell,

> But don't go away thinking that 
> you *must* do this because it's intrinsically difficult in XSLT to provide 
> a default value when none is available in the source. It's not.

In hind sight it is actually more logical to preprocess the data.  The 
application used to contain the code to collect the data via interactive 
questionnaires, process it and then do the merge - it makes more sense to 
stick the processing in with the data collection.

> Stretch your brain to accommodate the 
> kind of technique that Andreas suggested, for example, and you find soon 
> enough that XSLT provides alternatives to the techniques you know, that may 
> require a little getting used to, but that are extremely powerful, 
> flexible, and simple to use once you get the hang of it all.

I can see what Andreas is doing, however it doesn't provide a total solution.  
The sort of logic I am trying to replace is as follows:

IF NOT ANSWERED( PWQ )
  SET PWQ TO FALSE
END IF
IF Rerun = FALSE
  SET RBSchild TO FALSE
END IF
IF Draft = TRUE
  SET Plan1 TO TRUE
END IF
IF TestDetyn = TRUE
  SET Plan7 TO FALSE
ELSE IF TestDetyn = FALSE
  SET Plan7 TO TRUE
END IF
IF Mirroryn = FALSE
  SET Singleyn TO TRUE
END IF

OK, the original logic (this is only a fraction of it) needs to be sorted 
though because there are a number of diuplicates, however I will still need to 
be able to set a value and then change it later based on some other condition.

I would be interested to know if there is an XSL way to do that.

-- 
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.