BUG: Error message occurs after you modify the extracted style sheet in InfoPath 2003

SYMPTOMS
When you open a Microsoft Office InfoPath 2003 form that you have extracted the form files from, and then you modify an extracted style sheet (.xsl), you receive an error message that the Extensible Stylesheet Language (XSL) is not valid. You verify that the XSL is valid, but you still continue to receive an error message.

CAUSE
This problem may occur if the following conditions are true:

? You make changes to the XSL in the extracted form files that invalidate the XML.
? You open the Manifest.xsf file for the solution.

After you open a form with XSL that is not valid, the XSL is cached, and then you receive an error message. Future attempts to open the solution, even after you correct the XSL, result in the same error because the XSL that is not valid remains cached.

WORKAROUND
To work around this problem, open the Manifest.xsf file for the solution in Design mode, and then save the form solution. After you correct the XSL, rebuild the form solution in InfoPath Designer. You can now open the form so that the form uses the corrected XSL.

To work around this problem, follow these steps:

1. Open the Manifest.xsf file, and then save the template.
2. In Windows Explorer, right-click Manifest.xsf, and then click Design.
3. On the File menu, click Save As. Click Save when the Save As dialog box appears.
4. Type C:\test.xsn for the file name, and then click Save. If you are prompted to overwrite an existing file, click Overwrite.
5. Close the template.
6. In Windows Explorer, right-click C:\test.xsn, and then click Open.

Note The form opens without an error, and the form correctly displays Hello World.

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION
Steps to Reproduce the Problem


1. Design a new, blank form in InfoPath, and then save the form.
2. Type Hello on the form.
3. Save the form template as C:\Test.xsn.
4. On the File menu, click Extract Form Files.

The Browse for Folder dialog box appears.
5. Select a folder in the Browse for Folder dialog box, and then click OK.
6. Close the form.
7. Use a text editor or an XML editor to open View1.xsl from the folder where you extracted the form files.
8. Locate the following <div> element in the XSL: <div>Hello</div>

Remove the forward slash from the closing tag (to purposely invalidate the XSL):<div>Hello<div>


9. Save your changes to View1.xsl.
10. In Microsoft Windows Explorer, right-click Manifest.xsf, and then click Open.

You see the following error message in the dialog box that has a Show Details button:

InfoPath cannot create a new, blank form.
InfoPath cannot open the form. To fix this problem, contact your system administrator.


11. Click Show Details, and you receive the following error message:

Form template: file:///C:\manifest.xsf
InfoPath cannot open the following view: View 1
The following view file is not valid: view1.xsl
The file is not a valid XML document.


The form does not open.

12. Use a text editor or an XML editor to open View1.xsl. Change the text to Hello World, and then restore the forward slash for the closing tag: <div>Hello World</div>


13. In Windows Explorer, right-click Manifest.xsf, and then click Open.

Note The same error appears although you modified the XSL to correct the XML.


APPLIES TO
? Microsoft Office InfoPath 2003