<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Wrong XSLT in upgrade.xsl?</title><link>https://www.infopathdev.com:443/forums/thread/61453.aspx</link><pubDate>Tue, 16 Nov 2010 13:22:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61453</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=61453</wfw:commentRss><description>&lt;p&gt;Hi CFernald,&lt;/p&gt;
&lt;p&gt;Nice post! I don&amp;#39;t know, but it&amp;#39;s easy to edit the upgrade,xsl right? My guess is that the upgrade.xsl is trying to provide an automatic upgrade path to your form. Maybe the field changed in a significant way. I&amp;#39;m not sure. But, the workaround is simple. Save Source Files, open the upgrade.xsl and modify it. Edit hte manifest.xsf and republish. Not too hard.&lt;/p&gt;
&lt;p&gt;Good catch though. If it were more severe, I&amp;#39;d suggest we complain to Microsoft. :)&lt;/p&gt;
&lt;p&gt;Happy trails,&lt;/p&gt;</description></item><item><title>Wrong XSLT in upgrade.xsl?</title><link>https://www.infopathdev.com:443/forums/thread/61451.aspx</link><pubDate>Tue, 16 Nov 2010 13:13:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61451</guid><dc:creator>cfernald</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=61451</wfw:commentRss><description>&lt;p&gt;Good Morning,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have an InfoPath 2007 form (browser based) that presents application error messages to the user by showing/hiding expression boxes.&amp;nbsp; Recently I had need to update the text in one of the error messages.&amp;nbsp; My problem is that while the changed error message text appears in any new forms created by the user,&amp;nbsp;the old error message text is shown when the user accesses an existing form.&amp;nbsp; My understanding of InfoPath tells me that this sort of situation is managed by the upgrade.xsl file that is bundled in the xsn.&amp;nbsp; So I opened up the upgrade.xsl and did some investigating.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my original error message text:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cert2_actemra_recentuse_text = &amp;quot;The Most Recent Use Date must be a valid date.&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Here&amp;#39;s what I changed it to:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cert2_actemra_recentuse_text = &amp;quot;The Most Recent Use Date must be a valid date that is not in the future.&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Here&amp;#39;s the XSLT code that was generated in upgrade.xsl:&lt;/p&gt;
&lt;p&gt;&amp;lt;xsl:element name=&amp;quot;my:cert2_actemra_recentuse_text&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:choose&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:when test=&amp;quot;my:cert2_actemra_recentuse_text&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:copy-of select=&amp;quot;my:cert2_actemra_recentuse_text/text()[1]&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsl:otherwise&amp;gt;The Most Recent Use Date must be a valid date that is not in the future.&amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;&amp;lt;/xsl:element&amp;gt;&lt;/p&gt;
&lt;p&gt;Now I don&amp;#39;t pretend to be an expert in XSLT so I ran it through the XSLT debugger in Visual Studio (2008) using XML from an existing form as input.&amp;nbsp; I expected the code to branch to the &amp;quot;otherwise&amp;quot; and use the error message text contained therein.&amp;nbsp; However, that is not the case - it executes the &amp;quot;copy-of&amp;quot; statement and then proceeds to the next element.&amp;nbsp; The end result is that I get the original error message text instead of the new error message text.&lt;/p&gt;
&lt;p&gt;THE XSLT appears to say:&amp;nbsp; &amp;quot;if you find an element named &amp;#39;cert2_actemra_recentuse_text&amp;#39; then use its value, otherwise use &amp;quot;The Most Recent Use Date must be a valid date that is not in the future.&amp;quot;.&amp;nbsp; In effect, it appears that InfoPath is generating the wrong XSLT for the given situation.&amp;nbsp; The XSLT should be configured so that it unconditionally replaces the value of cert2_actemra_recentuse_text with the new value.&lt;/p&gt;
&lt;p&gt;I expect the workaround here will be to delete the error message entirely and create another with a slightly different name that has the correct error message text in it.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Any takers on why this might have happened and how I might avoid it in the future?&lt;/p&gt;
&lt;p&gt;Thanks in advance for any feedback.&lt;/p&gt;
&lt;p&gt;\cbf&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>