<?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: An alternative to ../preceding-sibling::my:item[1]/</title><link>https://www.infopathdev.com:443/forums/thread/91466.aspx</link><pubDate>Thu, 18 Jul 2013 09:02:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91466</guid><dc:creator>Faeze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=91466</wfw:commentRss><description>&lt;p&gt;Hi dipester&lt;/p&gt;&lt;p&gt;&amp;nbsp;I used your code and it works well in Infopath filler but when I published it as a sharepoint list, field can not store any value.&lt;/p&gt;&lt;p&gt;any suggestion?&lt;/p&gt;&lt;p&gt;&lt;b&gt;Edited:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;I found the solution here:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/23564/81737.aspx"&gt;http://www.infopathdev.com/forums/p/23564/81737.aspx &lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: An alternative to ../preceding-sibling::my:item[1]/</title><link>https://www.infopathdev.com:443/forums/thread/57798.aspx</link><pubDate>Mon, 09 Aug 2010 16:13:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57798</guid><dc:creator>dipster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57798.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=57798</wfw:commentRss><description>&lt;p&gt;I am having the same problem but I can&amp;#39;t seem to make any iteration of the above suggested Xpath work with my form. &lt;/p&gt;
&lt;p&gt;This works fine &amp;#39;../preceding-sibling::my:group2/my:EndMileage[1]&amp;#39; in a regular form but obviously doesn&amp;#39;t work in a browser form. &lt;/p&gt;
&lt;p&gt;How would I apply the same suggestion above to my xPath? &lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried the obvious one and it keeps saying it is not a valid location of a field or group. &lt;/p&gt;
&lt;p&gt;Tried - &amp;#39;../my:group2:my:EndMileage[count(preceding-sibling::my:group2/my:EndMileage) = (count(current()/../preceding-sibling::my:group2/my:EndMileage) - 1)]&amp;#39; &lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated. &lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;

[&lt;b&gt;edited by:&lt;/b&gt; dipster at 11:25 AM (GMT -8) on 2010-08-09]
&lt;p&gt;Fixed my problem... It was a syntax issue.&lt;/p&gt;

&lt;p&gt;../preceding-sibling::my:group2/my:EndMileage[(count(../preceding-sibling::my:group2)) = (count(current()/../preceding-sibling::my:group2/my:EndMileage) - 1)]&lt;/p&gt;

&lt;p&gt;This works fine.  It&amp;#39;s better than having to create an extra field to get the current position().&lt;/p&gt;</description></item><item><title>Re: An alternative to ../preceding-sibling::my:item[1]/</title><link>https://www.infopathdev.com:443/forums/thread/32717.aspx</link><pubDate>Thu, 02 Oct 2008 06:39:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32717</guid><dc:creator>santhoshp</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32717.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=32717</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Instead of using &amp;#39;&lt;strong&gt;../preceding-sibling::my:item[1]/&lt;/strong&gt;&amp;#39; you can use this XPath &lt;/p&gt;
&lt;p&gt;&amp;#39;&lt;strong&gt;../../my:item[count(preceding-sibling::my:item) = (count(current()/../preceding-sibling::my:item) - 1)]/&lt;/strong&gt;&amp;#39;&lt;/p&gt;
&lt;p&gt;This will work in Browser forms.&lt;/p&gt;</description></item><item><title>An alternative to ../preceding-sibling::my:item[1]/</title><link>https://www.infopathdev.com:443/forums/thread/32635.aspx</link><pubDate>Tue, 30 Sep 2008 06:50:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32635</guid><dc:creator>mcanne98</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32635.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=32635</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi&amp;nbsp;&lt;/p&gt;&lt;p&gt;Would like an alternative to using ../preceding-sibling::my:item[1]/ in Web Forms since [1] is not supported when published to Sharepoint 2007.&lt;/p&gt;&lt;p&gt;I&amp;#39;m looking to set the value of the current item element X to previous item element Y&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rgds&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>