Microsoft KB Archive/822030

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

Article ID: 822030

Article Last Modified on 7/28/2006

-

APPLIES TO


 * Microsoft Office 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 &quot;Applies to&quot; section.



Steps to Reproduce the Problem
 Design a new, blank form in InfoPath, and then save the form. Type Hello on the form. Save the form template as C:\Test.xsn . On the File menu, click Extract Form Files.

The Browse for Folder dialog box appears. Select a folder in the Browse for Folder dialog box, and then click OK.</li> Close the form.</li> Use a text editor or an XML editor to open View1.xsl from the folder where you extracted the form files.</li>  Locate the following element in the XSL: Hello Remove the forward slash from the closing tag (to purposely invalidate the XSL): Hello </li> Save your changes to View1.xsl.</li> 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.

</li> 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.</li>  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: Hello World </li> 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.</li></ol>

Keywords: kbbug kbpending KB822030

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.