By self-referential, we mean that it talks about itself. By self-documenting we mean that it makes a (true) statement about its own contents. For example, it may make a true statement about the number of occurences of each of the digits 0 to 9 that it contains.