Unsupported strucrture when opened in Design mode

K

Krishna Kal

Hello,

I am creating a Infopath form using a cabmaker with existing XSl,XML, XSD
and Manisfest.xsf files. I am able to create the Infopath from successfully
and able to open them too.

But now when I click on Desing Mode, I get an error saying

A view in the form template contains a structure that InfoPath does not
support.

Structure details:
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="Sam">
<td>
<div>
<xsl:for-each select="Cell">
<xsl:choose>
<xsl:when test="FormCellType='Label'">
<label>
<xsl:value-of select="LabelText"/>
</label>
</xsl:when>
<xsl:when test="FormCellType='CheckBox'">
<input type="checkbox" binding="field1" boundprop="value">
<xsl:value-of select="CheckBoxText"/>
</input>
</xsl:when>
</xsl:for-each>
</div>
</td>
</xsl:for-each>

Could any one help me with what the Issue is
 
C

Clay Fox

I manifest created by InfoPath designer has certain required elements and
signatures. Creating one manually would not include these. IP designer is
not ment to work with any templates but what is created by itself.

However you can get around this. Create a simple template with IP designer.
Extract the source files and then look at the manifest. Merge (copy) your
XML schema into the manifest created by IP designer and you should be fine.
 
K

Krishna Kal

Hello Clay,

Thank you very much for the response.

I did what you have suggested and I matched each other and created the IP
again to see me running into the same error

A view in the form template contains a structure that InfoPath does not
support.

Structure details:
<xsl:for-each xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="Col">
<td>


I tried removing all the xsl for each loops and elements and just had only
displaying the text box text. Still I run into the same error.

Any help please.
 
K

Krishna Kal

My Manifest File, do you see any thing wrong

<xsf:xDocumentClass trustSetting="automatic" trustLevel="restricted"
solutionFormatVersion="2.0.0.0" publishUrl="C:\Documents and Settings\Gopi
Kallepalli.MCDEAN\Desktop\Inspection Form\Inspection Form.xsn"
name="urn:schemas-microsoft-com:eek:ffice:infopath:publish:
xmlns:xsf="http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"
xmlns:xsf2="http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xdUtil="http://schemas.microsoft.com/office/infopath/2003/xslt/Util"
xmlns:xdXDocument="http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument"
xmlns:xdMath="http://schemas.microsoft.com/office/infopath/2003/xslt/Math"
xmlns:xdDate="http://schemas.microsoft.com/office/infopath/2003/xslt/Date"
xmlns:xdExtension="http://schemas.microsoft.com/office/infopath/2003/xslt/extension"
xmlns:xdEnvironment="http://schemas.microsoft.com/office/infopath/2006/xslt/environment"
xmlns:xdUser="http://schemas.microsoft.com/office/infopath/2006/xslt/User"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-11-11T14:50:12" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsf:package>
<xsf:files>
<xsf:file name="sampledata.xml">
<xsf:fileProperties>
<xsf:property name="fileType" type="string"
value="sampleData"></xsf:property>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="template.xml"/>
<xsf:file name="sampledata.xsd">
<xsf:fileProperties>
<xsf:property name="editability" type="string"
value="partial"></xsf:property>
<xsf:property name="rootElement" type="string"
value="Form"></xsf:property>
<xsf:property name="useOnDemandAlgorithm" type="string"
value="yes"></xsf:property>
</xsf:fileProperties>
</xsf:file>
<xsf:file name="view1.xsl">
<xsf:fileProperties>
<xsf:property name="lang" type="string" value="1033"></xsf:property>
<xsf:property name="componentId" type="string" value="5"></xsf:property>
<xsf:property name="xmlToEditName" type="string"
value="4"></xsf:property>
</xsf:fileProperties>
</xsf:file>
</xsf:files>
</xsf:package>
<xsf:importParameters enabled="yes"/>
<xsf:documentVersionUpgrade>
<xsf:useTransform transform="" minVersionToUpgrade="0.0.0.0"/>
</xsf:documentVersionUpgrade>
<xsf:extensions>
<xsf:extension name="SolutionDefinitionExtensions">
<xsf2:solutionDefinition runtimeCompatibility="client">
<xsf2:eek:ffline openIfQueryFails="yes" cacheQueries="yes"></xsf2:eek:ffline>
</xsf2:solutionDefinition>
</xsf:extension>
</xsf:extensions>
<xsf:views default="View 1">
<xsf:view name="View 1" caption="View 1">
<xsf:mainpane transform="view1.xsl"/>
</xsf:view>
</xsf:views>
<xsf:applicationParameters application="InfoPath Design Mode">
<xsf:solutionProperties lastOpenView="view1.xsl"
fullyEditableNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-11-11T14:50:12"></xsf:solutionProperties>
</xsf:applicationParameters>
<xsf:documentSchemas>
<xsf:documentSchema rootSchema="yes"
location="sampledata.xsd"></xsf:documentSchema>
</xsf:documentSchemas>
<xsf:fileNew>
<xsf:initialXmlDocument caption="Template5"
href="template.xml"></xsf:initialXmlDocument>
</xsf:fileNew>
</xsf:xDocumentClass>
 
C

Clay Fox

From the error it sounds like it is not a data schema issue but a view which
it is having issue with.
I would design a template in IP designer which has the views you need and
look at how it is formatted. Also you may be referencing a control that it
does not understand.

I think you will just need to play with creating one manually in designer
until you work out the bugs or conflicts.
 
K

Krishna Kal

Thanks for the Help Clay.

I did try lot of options by changing the controls in the xml I have taht
would support the Infopath. But I still run into the same error.

I think there is something to do when I click the designer which is looking
for some matching fields.

Thanks for all your help in making me think in different directions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top