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

declare the charset by an output element not the xml declara

Subject: declare the charset by an output element not the xml declaration?
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Tue, 15 Jun 2004 16:39:48 +0200 (MEST)
xml declare
Hallo,
we want to hold the charset of the stylesheet flexibel. Is it well formed to
give no encoding in the xml declaration but in the output element?

Many thanks,
markus

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

<xsl:template match="/">
<html>
<head>
<xsl:processing-instruction name='output'>
  <xsl:text>method="html"
</xsl:text><xsl:text>encoding="</xsl:text><xsl:value-of
select="$etc/et[attribute::name = 'charset']" /><xsl:text>"</xsl:text>
</xsl:processing-instruction>
<title></title>
</head>

<body>
  <xsl:apply-templates />
</body>
</html>
</xsl:template>


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.