T
Tanveer Rashid
I keep get the following error when attempting to preview an infopath form.
The form being developed has managed code (C#, VS 2005).
InfoPath cannot open the selected form because of an error in the form's code.
A floating attribute may not be passed as the context node for an XSLT
transform or an XPath query.
There is absolutely no custom code in the formcode.cs file. The schema that
i import into infopath after creating the project is fairly simple
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns="http://namespace" elementFormDefault="qualified"
targetNamespace="namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name="Child1">
<xs:complexType />
</xs:element>
<xs:element name="Child2">
<xs:complexType />
</xs:element>
</xs:sequence>
<xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"
processContents="lax" />
</xs:complexType>
</xs:element>
</xs:schema>
Can someone check if they face the same problem?
Save the xml schema given above in a file.
Create a new infopath project in VS2005 and then once the form is opened,
use Convert Main Data source to point to the schema above.
Once the schema has been imported, rebuild the project and preview the
infopath form.
I've posted on infopathdev.com as well. I've mentioned some more information
there.. http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3369
Thank you
Tanveer Rashid
The form being developed has managed code (C#, VS 2005).
InfoPath cannot open the selected form because of an error in the form's code.
A floating attribute may not be passed as the context node for an XSLT
transform or an XPath query.
There is absolutely no custom code in the formcode.cs file. The schema that
i import into infopath after creating the project is fairly simple
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns="http://namespace" elementFormDefault="qualified"
targetNamespace="namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Root">
<xs:complexType>
<xs:sequence>
<xs:element name="Child1">
<xs:complexType />
</xs:element>
<xs:element name="Child2">
<xs:complexType />
</xs:element>
</xs:sequence>
<xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace"
processContents="lax" />
</xs:complexType>
</xs:element>
</xs:schema>
Can someone check if they face the same problem?
Save the xml schema given above in a file.
Create a new infopath project in VS2005 and then once the form is opened,
use Convert Main Data source to point to the schema above.
Once the schema has been imported, rebuild the project and preview the
infopath form.
I've posted on infopathdev.com as well. I've mentioned some more information
there.. http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3369
Thank you
Tanveer Rashid