[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

What is wrong here?

Subject: What is wrong here?
From: "Slava Sedov" <slava.sedov@xxxxxxx>
Date: Wed, 27 Feb 2002 17:12:51 +0500
xsl xml encoding 1251
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.