A document transformation system comprises: template storing means for
storing structure information having a specific pattern, as a template;
template match detecting means for importing the structure information
forming the structured document, and transformation location information
indicating a transformation location of the structure information, and
for detecting a match portion between the structure information and the
template, excepting the transformation location indicated by the
transformation location information, from objects of detection, in the
structure information; template replacing means for importing the
structure information forming the structured document, and match
information indicating the match portion, for replacing the match portion
indicated by the match information, in the structure information with the
template, and for outputting replaced structure information; and
transforming means for importing the character string information forming
the structured document, the replaced structure information, and a
transformation rule for transformation of the structure information and
character string information forming the structured document, for
transforming the replaced structure information and the character string
information thus imported, according to the transformation rule, and for
outputting transformed structure information and transformed character
string information.