|
Home > Online Product Documentation > Table of Contents > Component Properties Component PropertiesEach component in a report - the body, tables, lists, repeaters, and so on - is associated with a set of properties that control its formatting and content. The text component has properties for Color, Font, Size, and so on. The Color property, for example, lets you select aqua, bisque, blue, and so on. Properties vary based on the component. (See Properties Reference for a complete list.) Context and XPath Sub-Properties
Each property has
Context and
XPath sub-properties that let you define the conditions under which you want to, say, display a value or apply a given formatting characteristic. You can use the
Color property's
Context and
XPath sub-properties to format text based on the value returned by an XPath expression - format all `R' rated movies in
The Properties WindowComponent properties are displayed in the Properties window, a dockable window you can place anywhere on your desktop. To display the Properties window, click View > Properties
The
Properties window consists of one or more tabbed pages. The specific tabs that are present in the
Properties window vary based on the component you have selected in the report canvas. As shown in
Figure 469, the
Properties window for the
The order of the tabs in the Properties window reflects the hierarchy of the currently selected component, from the most specific (the currently selected component) to the most general (the parent component to which it belongs), left to right. The report body is the only component without tabbed pages. Example: Using Context and XPath Sub-Properties to Format Text
Our report contains a table based on the
If we look at the properties for the rating element, we can see how this was achieved.
As you can see,
Default Color property is specified as
Together, these properties control when data from the
Entering XPath ExpressionsYou can enter an XPath expression by typing directly in the XPath field. If you prefer, you can use the XPath Editor dialog box, shown in Figure 472.
The XPath Editor dialog box supports Stylus Studio's Sense:X auto-completion and text coloring, which can provide useful prompts as you type your XPath expression. To display the XPath Editor dialog box:
1. Click the
XPath entry field for the property you want to define.
The text cursor and a "more" button appear in the field.
2. Click the "more" button.
Stylus Studio displays the XPath Editor dialog box. |
The XML Primer: Editing and Validating XML in Stylus Studio
The XML primer demonstrates editing and validating XML in Stylus Studio demonstrates XML editing tools and utilities to simplify working with XML documents. Learn how to automate XML editing operations and troubleshoot XML documents today!
Scientific, Photo & Control Equipment
Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!
EAI - Enterprise Application Integration
Using EAI tools included with Stylus Studio it's easy to unlock silos of enterprise data and seamlessly integrate it into your IT applications.
Validating EDIFACT Documents with XML Schemas
Either before or after transforming EDIFACT content, generated XML Schemas will make sure that we have all of the necessary components, our codes are all according to the standard codelists, and every little delimiter is in the right place.


