Updating a Sample Document Using the Grid Tab

 

The XML Editor Grid tab is available only in Stylus Studio XML Enterprise Edition and Stylus Studio XML Professional Edition.

This section provides instructions for updating the your-quotes.xml document using the Grid tab of the XML Editor. The Grid tab is useful for displaying structured data. It is a convenient way to view a document that contains multiple instances of the same type of element, for example.

 

Watch it! You can view a video demonstration of this feature by clicking the television icon or by clicking this link: watch the XML Grid Editor video.

A complete list of the videos demonstrating Stylus Studio's features is here: http://www.stylusstudio.com/xml_videos.html.

To update XML document using the Grid tab:
1. If it is not already open, open your-quotes.xml.

See Opening a Sample XML Document if you need help with this step.

2. At the bottom of the XML Editor window, click the Grid tab.

Stylus Studio displays a table that contains the XML data.

Figure 19. Grid Tab

The left most column, with the Tag Name heading, contains the children of the <ticker> element. The remaining columns contain the grandchildren of the <ticker> element. The heading of each column identifies the element name - company, symbol, and so on.

Tip

 

You can resize columns by dragging the handle on the column heading's right side. You can change the element order in the document by dragging the handle on the column heading's left side. Stylus Studio swaps positions with the column on which you come to rest.

3. Select the last row by clicking to the left of the last <quote> element.

The row is highlighted in blue.

4. Click the Insert row after ( ) button.

A new instance of the <quote> element is added to the document. The cursor is placed in the <company> element cell.

Figure 20. Grid with a New Row

5. Type XML Designs and press Enter.

Stylus Studio creates the value for the <company> subelement.

6. Press Tab (or use the right arrow key) to move the cursor to the next cell in the row.
7. Repeat step 5 and step 6 to create values for the <symbol> and <exchange> subelements.
8. If you want, you can continue to add the data contained in a quote element.

XSL:FO Editor

The XSL-FO editor provides syntax help, code completion integrated PDF preview, and integration with industry-leading XSL-FO processors including RenderX XEP and Apache FOP. Simplify XSL FO development with Stylus Studio.

Translating XML documents to X12

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to X12

Support for the Saxon XQuery Processor

Stylus Studio's XQuery tools feature integrated support for the Saxon SA 8.7.3 XQuery and XSLT processor so you can Edit, Debug and Run XQuery using Saxon. Java code generation support lets you deploy Saxon XQuery applications with just one click.

XQuery Talk

Join the XQuery Talk mailing list for a practical discussion about XQuery. It's a place to work together to learn a new language, talk about problem solutions, discuss engines and implementations, chat about the latest XQuery news and more.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member