Most of the template section of an XSL page is an ordinary HTML document. Everything starting from <html> down to the </html>.
We will save this as "example.xsl" and add the connection command line into our previous XML document example...
You can now view the XML page... XML Example 4
<?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="/">
<html>
<body>
Information will be seen in here.
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
Information will be seen in here.
</body>
</html>
</xsl:template>
</xsl:stylesheet>
We will save this as "example.xsl" and add the connection command line into our previous XML document example...
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="example.xsl"?>
<list_of_movies>
<movie>
<title> Finding Nemo </title>
<age_group> Kids </age_group>
<comments> Fish are friends, not food. </comments>
</movie>
<movie>
<title> Monty Python Holy Grail </title>
<age_group> Adult </age_group>
<comments> A shrubbery for the Knights who say Nee! </comments>
</movie>
<movie>
<title> Harry Potter </title>
<age_group> All </age_group>
<comments> Very popular for all ages. </comments>
</movie>
</list_of_movies>
<?xml-stylesheet type="text/xsl" href="example.xsl"?>
<list_of_movies>
<movie>
<title> Finding Nemo </title>
<age_group> Kids </age_group>
<comments> Fish are friends, not food. </comments>
</movie>
<movie>
<title> Monty Python Holy Grail </title>
<age_group> Adult </age_group>
<comments> A shrubbery for the Knights who say Nee! </comments>
</movie>
<movie>
<title> Harry Potter </title>
<age_group> All </age_group>
<comments> Very popular for all ages. </comments>
</movie>
</list_of_movies>
You can now view the XML page... XML Example 4

