How to make every other row in an XSLT Data View Web Part a different color in FrontPage 2003 (831095)



The information in this article applies to:

  • Microsoft Office FrontPage 2003

SUMMARY

This article discusses how to format rows in an Extensible Style sheet Language Transformations (XSLT) Data View so that every other row is a different color.

MORE INFORMATION

In FrontPage 2003, you can apply conditional XSLT formatting for information in a Data View that is being returned from an XML data source. (For example, a Data View may include data that is contained in a static XML file or from a Microsoft Windows SharePoint Services list.) To modify the XSLT to make every other row in the Data View a different color, follow these steps:
  1. Click in any table cell that contains XML data.
  2. On the Table menu, click Select, and then click Row.
  3. Click the Data menu, and then click Conditional Formatting.
  4. In the Conditional Formatting task pane, click Apply Formatting in the Create section.
  5. In the Condition Criteria dialog box, click [Row Number] in the Field Name area .
  6. Click IsOdd, and then click OK.
  7. In the Modify Style dialog box, click Format, and then click Border.
  8. In the Borders and Shading dialog box, click Shading.
  9. In the Shading dialog box, click Gray.
  10. Click OK two times to return to the design surface in FrontPage.

Every other row is now gray.

Modification Type:MinorLast Reviewed:1/6/2006
Keywords:kbView kbformat kbXML kbinfo kbhowto KB831095