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.

4
  • 1
    If a document contains copyrightable expression, it's never a bad idea.
    – apsillers
    Commented Feb 1, 2013 at 14:44
  • 3
    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) Commented Feb 1, 2013 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
    Commented Feb 1, 2013 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. Commented Feb 2, 2013 at 3:18

1 Answer 1

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.

1
  • 1
    “XML should be acting as a data carrier rather than a creative work in and of itself” – unless it is an SVG image :).
    – kirelagin
    Commented Oct 15, 2020 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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