I found this page today while trying to find the proper way to add a copyright symbol ( © ) with XSL. Copyright Symbol Webpage is simply a good reference to how and why to use the copyright symbol.

Here’s a snippet on how to use it in XSL

Unicode Copyright Symbol – Programmers, please NOTE:

Unicode is required by modern standards such as Java, XML, ECMAScript / JavaScript, CORBA, WML, LDAP etc.

Pretty much all of the questions about Copyright Symbols for standards that use Unicode will require the © input. however, this may differ such as for XSL as listed below. We have tried to collate what we can for you – if you can’t work out the answer from here…keep on searching – and please write to us with any information that you think would be useful on this site.

Java Script / JSP Copyright Symbol

In Java use the unicode © or © to get the copyright symbol. One common mistake is typing the © into the code, which will not work.

XML Copyright Symbol

In XML use the unicode © or © to get the copyright symbol.

XSL Copyright Symbol

If you were to use the ‘©‘ entity with XSL, you may well come across the complaint of “Reference to undefined entity ‘copy’.”

In XSL always use ©

Copyright Symbol Webpage


3 Responses to “How to include a copyright symbol in any language”  

  1. 1 Joe Clark

    Any XML file uses UTF-8 by default and can include the actual symbol, not an entity.

  2. 2 Ted

    Good point Joe.

  3. 3 josht

    thx for the xsl(t) one…

Leave a Reply


Powered by WP Hashcash