Problem when Opening an Infopath form - InfoPath Dev
in

InfoPath Dev

Problem when Opening an Infopath form

Last post 11-11-2008 05:33 AM by crishna. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-07-2008 08:18 AM

    Problem when Opening an Infopath form

    <p>

    Hi I have an Infopath created with an respective XML's and xsl's. when I open the path I get the following error. In the XSL I dont see the "xmlns:xsl="http://www.w3.org/1999/XSL/Transform" but this is getting added to xsl when run/ any Ideas

    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 style="WIDTH:&lt;xsl:value-of select=ColumnWidth&gt;"><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"><xsl:value-of select="CheckBoxText"/></input></xsl:when><xsl:when test="FormCellType='Options'"><select name=" "><option value="Device 01">Device 01</option><option value="Device 02">Device 02</option><option value="Device 03">Device 03</option><option value="Device 04">Device 04</option><option value="Device 05">Device 05</option><option value="Device 06">Device 06</option><option value="Device 07">Device 07</option><option value="Device 08">Device 08</option><option value="Device 09">Device 09</option><option value="Device 10">Device 10</option></select></xsl:when><xsl:when test="FormCellType='TextField'"><label style="vertical-align: &lt;xsl:value-of select=TextAlignment&gt;"><xsl:value-of select="TextBoxLabelText"/></label><textarea><xsl:value-of select="TextBoxLabelText"/></textarea></xsl:when></xsl:choose></xsl:for-each></td></xsl:for-each>

    </p>

  • 11-10-2008 11:52 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Problem when Opening an Infopath form

    Hello,

    Do you have any nodes before <xsl:for-each node? This "xmlns:xsl="http://www.w3.org/1999/XSL/Transform" namespace is used for above of node then you have to add this namespace in root node.

  • 11-11-2008 12:10 AM In reply to

    Re: Problem when Opening an Infopath form

    The xmlns:xsl attribute is not the problem.  That's normal.  In general, you cannot just take any XSL and use it in an InfoPath view.

    I would think that the <label>, <input>, and <option> tags would make InfoPath upset.  They are HTML elements but I don't think they can be used in InfoPath forms. A few of those xsl tags probably aren't allowed either.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 11-11-2008 05:25 AM In reply to

    Re: Problem when Opening an Infopath form

    Thanks Jimmy and Shiva.

     Jimmy,

    Just to mention. I create a Infopath form suing cabfile maker from xml, xsl, xsd and Manifest.xsf files.

    When I open the Infopath form I am able to open them fine. Everythign comes up fine. But when I click the Design Mode I run into this issue.

    Probably Yes, the controls that are in the XSL are creating the Issue. I wanted to know if you know if Infopath supports Multiple XSL: For each loops

     

    Thanks

  • 11-11-2008 05:33 AM In reply to

    Re: Problem when Opening an Infopath form

    What I meant was nested XS:For-Each

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.