File: myxmldocument.xsl

Recommend this page to a friend!
  Classes of Manuel Lemos  >  XML Writer class  >  myxmldocument.xsl  >  Download  
File: myxmldocument.xsl
Role: Auxiliary data
Content type: text/plain
Description: Example XML stylesheet to render the sample output document as an HTML page in XML capable browser
Class: XML Writer class
Composing and generating XML documents.
Author: By
Last change:
Date: 18 years ago
Size: 1,007 bytes


Class file image Download
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:rdf="" xmlns:dc="" xmlns:rss="" xmlns="">

<xsl:output method="html"/>

<xsl:template match="address">
		<li><b>Street:</b> <xsl:value-of select="street"/></li>
		<li><b>Zip:</b> <xsl:value-of select="zip"/></li>
		<li><b>Country:</b> <xsl:value-of select="@country"/></li>

<xsl:template match="name">
	<li><b>Name:</b> <xsl:value-of select="."/></li>

<xsl:template match="/">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>MyXMLDocument information</title>

<h1><center>MyXMLDocument information</center></h1>

<hr />


<hr />


For more information send a message to info at phpclasses dot org.