Simple Conditionals

Subject: Simple Conditionals
From: "Douglas Nehring" <dnehring@xxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 1999 18:12:21 -0500
As my baby steps in XSL continue, more questions....

Can XSL do processing conditional?  What I'm looking to do is color the rows
of my table based on an element's attribute.

For example:
<entry type="type1">
 <body>text</body>
</entry>

<entry type="type2">
<body>more text</body>
</entry>

The xsl would then create a table, and place the body text for each entry in
its own row.  Entries of type1 should have a text color of red, and entries
of type 2 should be blue.

I can create the tables/rows/divs/spans, I "just" need a few pointers on how
to do conditional processing if possible.

Thanks,

Doug Nehring
Nortel Networks
MSL-100 Advanced Technology 
Richardson, TX
(972) 685-2096, ESN 445-2096



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread