shadowline
XSLT Basics << XSLT Tags >> XSLT Template
An XSLT page is a template made with HTML tags. It is a text document that is saved with the .xsl extension.

The main XSL tags are :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">

template tags go in here.

</xsl:template>
</xsl:stylesheet>

The first line is the same as an XML document. Since we are working with XML still, we have to specify that to the browser.

The next line...
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Specifies that we are using XSL to format some information. The second part in the line is called a namespace. It connects to a set of instructions on the W3C site which will allow the XSL to work correctly.

Onto the next line...
<xsl:template match="/">
This starts the template area. The template area will hold the essentials of a normal HTML page. This will be used to format the data collected from the XML page.

After the template coding, the template command and stylesheet must be closed.
</xsl:template>
</xsl:stylesheet>
XSLT Basics << XSLT Tags >> XSLT Template
shadow

Advertise in the banner along the top, Click here!

Valid XHTML 1.0 Transitional Valid CSS! Text Link Ads
shadow
shadow