Creating a Template That Matches the book Element

This topic is part of a sequence that starts with Creating a New Sample Stylesheet.

The template that matches the root node includes an xsl:apply-templates instruction that selects book nodes for processing.

To define the template that matches the book element:
1. In the XSLT editor source document tree pane, expand the bookstore element.
2. Double-click the book element.

Stylus Studio creates a template that matches the book element. The new template is near the end of the stylesheet and has the form <xsl:template match="book">. In the tree pane, the yellow check next to the book element indicates that there is a template that matches this element.

3. In the XSLT editor pane, add the following instructions to the new template's body:
<tr> 
  <td><xsl:apply-templates select="title"/></td> 
  <td><xsl:apply-templates select="author"/></td> 
  <td align="right">  
  <xsl:apply-templates select="price"/> 
  </td> 
</tr> 

XSL and XSLT Tools

XSLT tools in Stylus Studio let you easily edit, debug, design and profile XSLT stylesheets using a powerful and intuitive graphical user interface.

SQL/XML Tutorial

Many developers need to be able to write applications that work for databases from multiple vendors. This SQL/XML Tutorial refers to SQL/XML, XQuery, and Native XML Programming Languages to do just that.

Web Service Testing Tools

The Stylus Studio Web Service Tester allows you to easily locate, build references to, and test Web services for XML applications based on WSDL, SOAP, and UDDI standard Web service technologies.

Web Service Data-to-XML Mapper

Stylus Studio provides a powerful standards-based solution for accessing and transforming live Web service XML data. Intuitive tools like the Web Service Call Composer and UDDI Browser make developing Web service applications a snap.

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.