LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] XML & UTF Encoding

[ILUG] XML & UTF Encoding

Brian Foster blf at utvinternet.ie
Thu Apr 25 11:59:58 IST 2002


  | From: Stephane Dudzinski <stephane at antefacto.com>
  | Date: 24 Apr 2002 08:57:34 +0100
  |[ ... ]
  | I've been using xsltproc under Linux to translate documents from English
  | to French.
  | 
  | If i try to put any &eacute; &egrave; characters types, xml complains
  | when i build my html from xml saying :
  | ../xml/build.xml:16: error: Entity 'eacute' not defined
  | 
  | In order to get this error i indicated to XML that the type of encoding
  | was (and is) UTF-8 by modifying this tag :
  | <?xml version='1.0' encoding="UTF-8"?>

XML has only c.4 builtin entities (&amp and I cannot recall the
others), and &eacute et.al. are not them.  the codeset in which
the XML is written does not matter (AFAIK).

whilst I think it is possible to define your own XML entities,
a trick I have used in the past when writing XML that is known
to eventually be converted into HTML is to say:

   &amp;eacute;

the XML->HMTL conversion turns that into:

   &eacute;

which is exactly what you want --- and is codeset-independent.
your mileage may very.
cheers!
	-blf-
--
 Innovative, very experienced, Unix and      | Brian Foster    Dublin, Ireland
 Chorus (embedded RTOS) kernel internals     | e-mail: blf at utvinternet.ie
 expert looking for a new position ...       | mobile: (+353 or 0)86 854 9268
  For a resume, contact me, or see my website  http://www.blf.utvinternet.ie




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell