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

RE: Encoding attribute

Subject: RE: Encoding attribute
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 30 Jan 2004 21:10:45 -0000
entity euro
You have had an enormous amount of information in response to your
postings, and I appreciate that it might be bewildering, but I suggest
you spend the weekend reading the answers carefully before you ask any
more questions. You are doing things that you have been specifically
advised not to do, and you are not doing the things that you have been
advised to do.

Stop tinkering with your source document and your stylesheet, and
instead try to find out why the browser is displaying your generated
HTML incorrectly. In particular, try to write HTML by hand that displays
correctly, and when that is working, try to find the differences between
that HTML and the HTML that is produced by your transformation output.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Fran
> Sent: 30 January 2004 15:48
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Encoding attribute
> 
> 
> I don't understand anything, I tried with this entity 
> <!DOCTYPE xsl:stylesheet [<!ENTITY euro "&#8364;">]> and with 
> &#x20AC; and I see always strange characters. I tried with 
> XML Spy and I see always the "?" character, changing encoding 
> to ISO-8859-1 , ISO-8859-15 and UTF-8 using MSXML parser. I 
> tried to do a PHP (Dom) server transformation and I see the 
> "â" character. I notice that after my transformation my IE is 
> in ISO West European codification and when I change this 
> manually I see exactly the "€" character.
> 
> Here's my code :
> 
> <?xml version="1.0" encoding="ISO-8859-15"?>
> <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#8364;">]> 
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html" encoding="ISO-8859-15"/>
> 
> I think it could be better change to the ancien money(Ptas.) !!! :-)
> 
> -----Mensaje original-----
> De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de 
> Rowland Shaw Enviado el: viernes, 30 de enero de 2004 14:47
> Para: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Asunto: RE:  Encoding attribute
> 
> 
> I'm not surprised -- you've the wrong entity -- it should be: 
> &#8364;  (&#x20AC;)
> 
> 
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Fran
> Sent: 30 January 2004 13:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Encoding attribute
> 
> I found the euro character in ISO-8859-15 so I change my XML 
> and XSL to this encoding. I have now my xsl with entity references:
>   <?xml version="1.0" encoding="ISO-8859-15"?>
>    <!DOCTYPE xsl:stylesheet [<!ENTITY euro "&#164;">]>
>    <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>    <xsl:output method="html"/>
> 
> I put <xsl:text>&euro;</xsl:text> but it writes another character....
> 
> Any suggestions please?
> 
> Thanks a lot!!
> Frank
> 
> 
> -----Mensaje original-----
> De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de 
> Fran Enviado el: viernes, 30 de enero de 2004 13:58
> Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Asunto: RE:  Encoding attribute
> 
> 
> And then if i use ENTITY references if I define for example 
> <!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>, it puts 
> me  the #160 character from the table I have specified in 
> encoding attribute??? So, Is the set of characters important 
> to the encoding attribute? Spain works with ISO-8859-1 but I 
> can't found the euro character. So, I must change the table 
> of characters???
> 
> -----Mensaje original-----
> De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de 
> David.Pawson@xxxxxxxxxxx Enviado el: viernes, 30 de enero de 2004 9:08
> Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Asunto: RE:  Encoding attribute
> 
> 
> http://www.dpawson.co.uk/xsl/sect2/N3573.html#d3821e78
> 
> Shows how to define an entity (change it to & euro ; )
> and let you use it as you want.
> 
> HTH DaveP
> 
> 
>     I hope anybody can help me with this silly question.
>     I don't understand very well what kind of encoding I must
>     utilice. I live in Spain and I read that I must utilice
>     ISO-8859-1 characters and I put always in XML files the
>     <?xml version="1.0" encoding="ISO-8859-1"?>  and in the XSL
>     files when I want to escape HTML I put always <?xml version="1.0"
>     encoding="ISO-8859-1"?>
>     <xsl:stylesheet version="1.0"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>     <xsl:output method="html"/>
>     The problem is when I want to put some "especial"
>     characters like "EUR" , non-breaking espaces, etc... I put in
>     the XSL StyleSheet when I want to display "euro" character
>     &euro; &#8364; but whith &euro; he tells me "Entity
>     Reference not defined" and with &#8364; I see another character.
>     Any suggestion, please?
> 
> 
> 
> 
> 
>      XSL-List info and archive:
>     http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> -
> DISCLAIMER:
> 
> NOTICE: The information contained in this email and any 
> attachments is confidential and may be privileged. If you are 
> not the intended recipient you should not use, disclose, 
> distribute or copy any of the content of it or of any 
> attachment; you are requested to notify the sender 
> immediately of your receipt of the email and then to delete 
> it and any attachments from your system.
> 
> RNIB endeavours to ensure that emails and any attachments 
> generated by its staff are free from viruses or other 
> contaminants. However, it cannot accept any responsibility 
> for any  such which are transmitted. We therefore recommend 
> you scan all attachments.
> 
> Please note that the statements and views expressed in this 
> email and any attachments are those of the author and do not 
> necessarily represent those of RNIB.
> 
> RNIB Registered Charity Number: 226227
> 
> Website: http://www.rnib.org.uk
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.