A method for excluding structures from a markup document can include
identifying a section within a first markup document into which at least
a portion of a second markup document is to be inserted. An exception
markup document can be identified that specifies structures restricted
within the section. The first markup document, the second markup
document, and the exception markup document can be based upon the same
markup language. The portion of the second markup document can be
searched for at least one excluded structure specified within the
exception markup document. If no excluded structure is found the portion
can be inserted into the section. If at least one of the excluded
structures is found, at least one exception handling operation can be
performed.