File: Data.xml
<?xml version="1.0"?>
<fragment>2001</fragment>
File: Transform.xslt
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes" />
<xsl:template match="/">
<html>
<head>
<title>Contact Info</title>
</head>
<body
style="font-size:12px; font-family: Verdana, Arial, Helvetica;">
contact me
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Output:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Contact Info</title>
</head>
<body style="font-size:12px; font-family: Verdana, Arial, Helvetica;">
contact me
</body>
</html>
|