[TFUI] OT? "if" in XSLT (Re: XML -> XSLT -> XHTML Nirvana)
"J. B. Rainsberger" <[email protected]>
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
>> Phlip wrote:
>
>>However, when aiming for the goal "only XSLT supplies markup", I cheat.
>>Faced with a short schedule and long feature list, and face with the absurd
>>complexities required to code a lowly 'if' statement inside XSLT, I move the
>>'if' statement up into the project that generates the XML.
>
> Cory:
> Forgive me for being a little naive - but what does creating an if
> statement inside XSLT look like to you? I agree that when you want an
> *else* - therefore you have to use the monolithic xsl:choose - it is
> nasty, but if has always seemed fairly straightforward to me.
More to the point, why should one need "if" at all? If "if" should
happen when generating the XML, and the corresponding template is either
applied or not applied. There is no "if".
--
J. B. (Joe) Rainsberger
Diaspar Software Services
http://www.diasparsoftware.com
Author, JUnit Recipes: Practical Methods for Programmer Testing
To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TestFirstUserInterfaces/
<*> To unsubscribe from this group, send an email to:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/