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

How generate encoding="ISO-8859-1" in the XML output?

Subject: How generate encoding="ISO-8859-1" in the XML output?
From: Cristobal Galiano Fernandez <c.galiano@xxxxx>
Date: Wed, 09 May 2001 18:51:45 +0200
xml encoding iso
Hi all!

Can any body tell me how cal generate <?xml version="1.0"
encoding="ISO-8859-1"?>  in the XML output
because   MSXML generates <?xml version="1.0" encoding="UTF-16"?> discard
the sentence
 <xsl:output method="xml" indent="yes" encoding="ISO-8859-1" />?

The only way I've found is

 <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xsl:exclude-result-prefixes="user" >

     <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
      <xsl:template match="/">

         <!-- Unica forma que he encontrado de generar
"encoding="ISO-8859-1'" -->
         <xsl:text disable-output-escaping='yes'>&lt;?xml version="1.0"
encoding="ISO-8859-1"?></xsl:text>

         <Valores>
            <Valor>Valor devuelto por función F1(): <xsl:value-of
select="user:F1(string(//URL))" /></Valor>
            <Valor>Valor devuelto por función F2(): <xsl:value-of
select="user:F2(2222)" /></Valor>
         </Valores>
     </xsl:template>


  </xsl:stylesheet>

Thanks in advance

Cristóbal


 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.