This works well except for a slight glitch. The xml file contains many field tags such as: <field name="mailingAddressState" value="Maine" />. The value attribute contains the customer supplied data from the form. The glitch occurs whenever the customer types either a & or " character (ampersand or double quote characters) in a text field. When those characters are put in the value attribute string, the resulting xml file is not valid. (Xml does not allow bare ampersands or double quote characters inside attribute strings.) The xml file being invalid causes my XLST processor to quit with an error. What I have been doing at that point is to edit the xml file by hand and then restarting the XSLT processor. Now that I am automating even more of the process, it would be very nice to eliminate this editing by hand step. So ...
Step 3) Can you change the code that generates the xml file from the form data so that:
a) All ampersands in the value attributes are replaced with the escape sequence &
b) All double quotes in the value attributes are replaced with the escape sequence "