/ Published in: XML
You need to know about [the presence of] these to understand the processing of an XSLT stylesheet.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- 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()" />