A method and system for providing help information for a computer program. The
help system provides help information based on a schema that specifies the structure
of a valid computer program. The schema provides definitions of program element
types that are specific instances of a program element type derived from more general
program element types. The help system identifies a "derivation" of program element
types relating to the selected program element. The help system then displays the
derivation to the user. The user can then select to display documentation associated
with the displayed program element types.