<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Not able to reset fields using XSLT</title><link>https://www.infopathdev.com:443/forums/thread/53520.aspx</link><pubDate>Fri, 09 Apr 2010 13:25:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53520</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53520</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Well,for one thing, your XSLT doesn&amp;#39;t use any namespaces (except xmlns:xsl), and the fields in your form surely have a namespace.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Not able to reset fields using XSLT</title><link>https://www.infopathdev.com:443/forums/thread/53508.aspx</link><pubDate>Fri, 09 Apr 2010 05:44:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53508</guid><dc:creator>ndbhatt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53508.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=53508</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am trying a little bit differently to reset fields to blank using XSLT code. Here&amp;#39;s my approach:&lt;/p&gt;
&lt;p&gt;A. Create infopath template with couple of controls (a drop down, a text box and a button) - See image attached&lt;/p&gt;
&lt;p&gt;B. Set ID in button properties to &amp;#39;reset_code&amp;#39; - See image attached&lt;/p&gt;
&lt;p&gt;C. Create an reset_code.XSLT file and attach it as resource file to Infopath template. -- See code attached&lt;/p&gt;
&lt;p&gt;Expected output Onclick of reset button the values entered in field1 and field2 should be set to blank.&lt;/p&gt;
&lt;p&gt;What am I doing wrong? I have seen this approach work at one of my clients place&amp;nbsp;and want to try out&amp;nbsp;more complex operations.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;ND&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>