Insert and Populate a Table

Next, we add a table based on the video repeating element and populate its columns.

5. Expand the videos node.
6. Drag the video repeating element from the data sources panel and drop it on the XML Publisher canvas.
7. Select Insert Table > Empty from the short-cut menu.

Stylus Studio creates a three-column table. At this point, the XML Publisher Editor should resemble Figure 493:

Figure 493. Default Table in New XML Publisher Report

Although the table currently contains no values, if you mouse over the repeating glyph at the left of the table ( ) you will see that it references the videos.xml document and that the current XPath expression evaluates the video repeating element ( /result/videos/video).

8. Right-click any cell in the table and select Remove Column from the short-cut menu.
9. Expand the video node in the data sources panel.
10. Drag the title node and drop it in the first column; select Insert Value from the short-cut menu.

A value glyph with the element name appears in the cell.

11. Repeat this step with the rating element, dropping it in the second column.
12. Right-click the table again, and select Add Row Before.

Stylus Studio adds a new row to the table. Note that the new row does not repeat - the repeating glyph is associated only with the second row, the row that contains the data.

13. Type Title in the first column and Rating in the second.
14. Click Preview ( ).

Stylus Studio creates a three-column table. At this point, your XML Publisher Editor should resemble this:

Figure 494. Preview of XML Publisher Report

15. Click the Hide docked window button (the small X) to close the Preview window. This gives us more room to work, and Stylus Studio will automatically display the Preview window the next time we preview the report.

Airlines, Aerospace and Defense

Want to know what airlines, aerospace and defense companies are soaring high with Stylus Studio 2006? Well now you can! Come check out these leading companies and soar with Stylus Studio 2006 yourself.

Support for US National Library of Medicine (NLM) Document Type Definitions

Stylus Studio provides support for editing and validating XML documents using US National Library of Medicine data models. In this tutorial, we'll provide a step-by-step overview of how to use the NLM DTD's in Stylus Studio!

XML-to-HTML Mapper

Stylus Studio simplifies XML-to-HTML mapping through the industry's first and only XML to HTML mapping tool based on industry standard XSLT.

Automotive Companies That Use Stylus Studio

Top automotive companies get their wheels spinning with Stylus Studio 2006. Come see which companies put Stylus Studio in their drivers seat today!

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.