1. A method for transforming a first document into a second document, the second document configured for use at an electronic device, the method comprising: receiving user interface information about the electronic device; selecting content rules for modifying content in the first document according to the user interface information; selecting presentation rules for presenting the content from the first document according to the user interface information; combining the content rules and presentation rules to form transformation instructions for transforming the first document into the second document; generating the content rules according to the user interface information; and generating the presentation rules according to the user interface information.
5. The method of claim 1 , further comprising transforming the first markup document into the second document using the transformation instructions.