|
XML.HTMLTeacher.Com
[Search] [Contact] [Sitemap] |
XML
[Main] [XPath] |
|
[Classes]
[XHTML] [XML] [CSS] [Design] [Programming] [Marketing] |
|
| Table of Contents |
|
1. Overview
2. Match Patterns 3. Path Expressions 4. Tutorial/Lab |
Example 1 <xsl:template match="/"> XSL file View result Example 2 <xsl:template match="/library"> XSL file View result Example 3 <xsl:template match="/chapter"> XSL file View result
Example 1 In the following example, the processor will look for all the ChildElements named chapter from the Root node of library. <xsl:template match="//chapter"> XSL file View result Access Nodes Regardless of Parent Example 1A <xsl:template match="chapter/topic"> XSL file View result Example 1B <xsl:template match="chapter//topic"> XSL file View result Example 1C <xsl:template match="//topic"> XSL file View result
<xsl:template match="bookcataloginfo | chapter"> <p><span style="color:red;"> <xsl:apply-templates select="title"/> </span></p> <p><span style="color:green;"> <xsl:apply-templates select="subtitle"/> </span></p> XSL file View result |
| All materials, tutorials and content are copyrighted by HTMLTeacher.Com.
Any use of any material, tutorials and/or content provided by this site is prohibited without expressed written consent of the author. Copyright ©2003 HTMLTeacher.Com and Sonia Weimann
|