Patent ID: 7225398

Claim:
A method of providing contextually sensitive user assistance for structuring a computer-generated document, comprising: attaching a schema to the document defining rules associated with markup language elements to be applied to the document; determining a current editing context in the document; determining from the schema potential markup language elements that may be applied to the document based on the current editing context in the document; displaying a list of the potential markup language elements that may be applied to the document based on the current editing context in the document wherein the displayed list of the potential markup language elements comprises elements allowed within a structure associated with an editing point in the document corresponding to a location of a computer-generated cursor wherein displaying the list of the potential markup language elements that may be applied to the document comprises displaying the list of the potential markup language elements that may be applied to the document when the computer-generated cursor is located within the structure; and displaying an indicator associated with each of the potential markup language elements, wherein the indicator indicates a validity level associated with applying each of the potential markup language elements to the document based on the current editing context.