|
Home >Online Product Documentation >Table of Contents >Format Data Conditionally Format Data ConditionallyThe last action we will perform on the table is to write an XPath expression to display the `R' rating for movies in a bold red.
24. Click the rating glyph.
25. In the Properties window, expand the Default Color property.
26. Click the XPath field, and then click the "more" button (
).
Stylus Studio displays the XPath Editor dialog box.
27. Type the following XPath expression:
if (rating = 'R') then 'red' else ""
Notice Stylus Studio's Sense:X auto-completion and text coloring as you type.
28. Click OK.
29. Next, use the same process to enter this XPath expression for the Bold property:
if (rating = 'R') then 'bold' else ""
30. Click Preview (
).
Our report now looks like this:
|