[xsl] What is wrong here?

Subject: [xsl] What is wrong here?
From: "Slava Sedov" <slava.sedov@xxxxxxx>
Date: Wed, 27 Feb 2002 17:12:51 +0500
xml-(xhtml) file...

<?xml version="1.0" encoding="windows-1251"?><?xml-stylesheet
type="text/xsl" href="xhtml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml";
xmlns:xlink="http://www.w3.org/1999/xlink";><head
xmlns="http://www.w3.org/1999/xhtml";><title>Purveyors</title></head><body
xmlns="http://www.w3.org/1999/xhtml";><div><p>Body</p></div></body></html>

xsl look like...

<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet xmlns="" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">

<xsl:output method="xml" encoding="windows-1251" media-type="text/html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

<xsl:template match="/">
      <xsl:apply-templates/>
</xsl:template>

<xsl:template match="html">
    <html>
      <xsl:apply-templates select="head"/>
      <xsl:apply-templates select="body"/>
    </html>
</xsl:template>

<xsl:template match="head">
<xsl:copy>
<meta http-equiv="content-type" content="text/html; charset=windows-1251"/>
<link rel="stylesheet" type="text/css" href="/CorpStyle.css"/>
<script type="text/Jscript" src="/check/common.js"/>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="body">
<xsl:copy><xsl:attribute name="onclick">LinkTest()</xsl:attribute>
<xsl:apply-templates select="@*"/>
<div class="notprint" align="center">Header<hr/></div>
<xsl:apply-templates/>
<div class="notprint" align="center"><hr/>Footer</div>
</xsl:copy>
</xsl:template>

<xsl:template match="@* | node()" priority="-9">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
</xsl:template>

</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread