Return to Snippet

Revision: 226
at July 5, 2006 14:00 by greystate


Updated Code
<!-- Element or root node: Process children -->
<xsl:template match="* | /">
   <xsl:apply-templates /> 
</xsl:template> 

<!-- Element or root in specific mode: Process children in that mode -->
<xsl:template match="* | /" mode="m"> 
   <xsl:apply-templates mode="m" /> 
</xsl:template> 

<!-- Text or attribute node: Output value -->
<xsl:template match="text() | @*"> 
   <xsl:value-of select="." /> 
</xsl:template> 

<!-- PI or comment node: Hide from result -->
<xsl:template match="processing-instruction() | comment()" />

Revision: 225
at July 5, 2006 13:50 by greystate


Initial Code
<xsl:template match="* | /"> 
   <xsl:apply-templates /> 
</xsl:template> 

<xsl:template match="* | /" mode="m"> 
   <xsl:apply-templates mode="m" /> 
</xsl:template> 

<xsl:template match="text() | @*"> 
   <xsl:value-of select="." /> 
</xsl:template> 

<xsl:template match="processing-instruction() | comment()" />

Initial URL


Initial Description
You need to know about [the presence of] these to understand the processing of an XSLT stylesheet.

Initial Title
Built-in templates in XSLT

Initial Tags
template

Initial Language
XML