WebReference.com - Excerpt from Inside XSLT, Chapter 2, Part 2 (1/5) | WebReference

WebReference.com - Excerpt from Inside XSLT, Chapter 2, Part 2 (1/5)

current pageTo page 2To page 3To page 4To page 5
[next]

Inside XSLT

Working with XSLT Elements

To build XSLT stylesheets, you need to be familiar with XSLT elements such as <xsl:template> and <xsl:stylesheet>. These elements support many attributes, and W3C has some formal definitions of the type of data you can assign to those attributes, so here are a few XSLT definitions you need to know:

Now it's time to begin creating XSLT stylesheets, starting with the element you use to connect stylesheets to XML documents, <?xsl:stylesheet?>.

The <?xsl:stylesheet?> Processing Instruction

When you have an XSL stylesheet you want to apply to an XML document, you need some way of connecting that stylesheet to the document, and that's often done with the <?xsl:stylesheet?> processing instruction. This instruction has several possible attributes:

The <?xsl:stylesheet?> processing instruction is added in the XML document, not the XSL stylesheet, and shows XSLT processors which stylesheet to use with this document.


current pageTo page 2To page 3To page 4To page 5
[next]

Created: September 20, 2001
Revised: September 20, 2001


URL: http://webreference.com/authoring/languages/xml/insidexslt/chap2/2/