How Data is Represented on the Canvas

Data is represented by glyphs that contain an XPath expression. The composition of these XPath expressions varies based on the context of the component in which the data is being included. The glyph might contain just an element name, or it might display a longer XPath expression if it represents data whose context is not established by the containing component.

Example

The context for the table component shown in Figure 458 is the video repeating element from the videos.xml document. You can see this if you select the table in the canvas and look at either the

  • The Context and XPath sub-properties for the repeating row
  • The Video table glyph in the navigation bar

Figure 458. Value Glyphs on the XML Publisher Canvas

Tip

 

You can see the context for any piece of data or component by hovering the mouse pointer over it. When you do, Stylus Studio displays a tooltip that includes the URL and XPath.

The following table shows the different types of XPath expressions you might see in an XML Publisher report.

Data Glyph
Contains
Description
The current context
The XPath expression for context is a dot. To make this easier to see in the glyph, Stylus Studio adds the element name in parentheses following the dot.
An element (or attribute) name
If the context is established by the containing component, the data glyph contains only the element or attribute name.
A full XPath
If the context for the data is not established by the containing component, Stylus Studio displays the full XPath needed to resolve it.
Table 159. Explanation of XPath Expressions in Data Glyphs

XML Notepad

XML Notepad simplifies building of XML applications, allowing authors to rapidly build and edit their XML files. With XML Notepad, you can create XML document prototypes quickly, easily, using an intuitive graphical interface.

Industrial & Farm Equipment

Industrial & farm equipment manufacturers are mowing away the time it takes for data integration with the power of Stylus Studio 2006! See which top industrial and farm equipment manufacturers are cowboying up with Stylus Studio.

Technology Companies That Use Stylus Studio

Technology companies can't always handle every technology that they come across. That's why when it comes to XML, they look to Stylus Studio to guide them. Check out which top technology companies are looking to the future with Stylus Studio.

OASIS Catalog Support

Stylus Studio's features for working with OASIS catalogs allow you to incorporate any vendor's catalog - or one of your own - in your XML, making writing correct and robust XML easier than ever.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member