A system and method is provided for efficiently adapting information
content for an electronic device. A normalizer includes a template
normalizer for matching and applying a document tree to a template tree,
and applying changes to the document tree. If the template normalizer
does not find an appropriate template match, an automatic normalizer is
utilized. The automatic normalizer utilizes weighting heuristics and
pattern recognition with formatting rules to partition content into
folders. The automatic normalizer can also utilize embedded normalization
markup in the information content to assist in normalizing the
information content. Information content can be represented by a document
object tree. A document object tree is created by storing information
relating to the information content into arrays. The stored information
describes a document object tree structure and tree dependencies as a
mutable object.