An apparatus, method, and program product for editing a structured
document is disclosed. A transformation unit transforms a first XSLT
document into a second XSLT document, to which a command for editing
documents is added based on a structure of the first XSLT document. A
generation unit generates a second structured document by transforming a
first structured document with the second XSLT document.