5

I'm currently working on an open-source project. Currently, we put our copyright notice at the top of every Java source file.

I was wondering whether it was advisable or common practice to put copyright notices in CSS or XML files.

  • 1
    If a document contains copyrightable expression, it's never a bad idea. – apsillers Feb 1 '13 at 14:44
  • 2
    I think it depends on what you're storing. XML is a document format, it could contain a whole copyrighted book (in which case it should contain a copyright imho), or <a>1</a> (in which case it probably shouldn't) – Benjamin Gruenbaum Feb 1 '13 at 14:59
  • Sure both file formats support comments. Its up to you as the author of the project to decide if the copyright notice should be placed in these types of files. – Ramhound Feb 1 '13 at 18:28
  • 1
    In any nation that subscribes to the Berne Convention, you have a copyright in every copyrightable thing you produce, automatically, whether you claim it or not. Copyright notices just put others on notice of that, and increase your ability to enforce your rights. – Ross Patterson Feb 2 '13 at 3:18
5

CSS yes, XML not so much

The purpose of a copyright notice is to inform readers that the material has a certain level of protection against unauthorised reuse. For creative works, such as CSS styling or source code, this makes sense.

In the case of XML it seems redundant because the XML should be acting as a data carrier rather than a creative work in and of itself. Of course, as Benjamin Gruenbaum has noted in the comments, if the XML is carrying a copyrighted work then that should carry a copyright notice within it.

On the whole, try to keep your copyright notice as small and unobtrusive as possible since people on tight bandwidth limits don't want to download more data than is necessary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.