<?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: preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/9155.aspx</link><pubDate>Thu, 11 May 2006 19:03:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9155</guid><dc:creator>chandero</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9155</wfw:commentRss><description>I tried the example you show (cannot figure out how to find namespace) and also the other one (without namespace) and cannot get it to work at all. I still get a 1 in each row I add. I looked at the sample Invoice that increments the item number whan you add a row. But there is no code that I could find that shows how to increment. The formula for the item field is 1.&lt;br /&gt;Any help in pointing me to an answer will be greatly appreciated.&lt;br /&gt;Thanks,&lt;br /&gt;</description></item><item><title>Re: preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/9154.aspx</link><pubDate>Fri, 24 Feb 2006 15:29:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9154</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9154.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9154</wfw:commentRss><description>Cool solution! The problem in the thread was a namespace issue, but this XPath is namespace-independent. I posted a link in the other thread to this thread.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/9153.aspx</link><pubDate>Fri, 24 Feb 2006 07:18:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9153</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9153</wfw:commentRss><description>Hi Carlos,&lt;br /&gt;Welcome to our forum and thanks for sharing your knowledge with us! :)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle</description></item><item><title>Re: preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/9152.aspx</link><pubDate>Fri, 24 Feb 2006 03:45:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9152</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9152</wfw:commentRss><description>Figured it out, thought ill post it in case theres more questions about it.&lt;br /&gt;&lt;br /&gt;Under the field where you want the number to autoincrement, go to its properties, click the Value button and type count(preceding-sibling::*/@Field) + 1 (where @Field is your increment field).&lt;br /&gt;&lt;br /&gt;Cheers,</description></item><item><title>Re: preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/9151.aspx</link><pubDate>Thu, 23 Feb 2006 03:19:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9151</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9151</wfw:commentRss><description>BTW:, I found another post with more or less the same issue&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1793&amp;SearchTerms=preceding-sibling&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1793&amp;SearchTerms=preceding-sibling&lt;/a&gt;</description></item><item><title>preceding-sibling question</title><link>https://www.infopathdev.com:443/forums/thread/5388.aspx</link><pubDate>Thu, 23 Feb 2006 03:16:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5388</guid><dc:creator>Carlos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5388.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5388</wfw:commentRss><description>I have a repeating section (from table Project_Phase).  One of the fields is Phase_Number, in which I wish to automatically populate with number (eg 1, 2, 3 etc), BUT, also have the ability to renumber itself if one of the repeating rows is deleted.  From what I have read, the preceding-sibling code is the way to go, but I cant get it to work. Can someone please explain the syntax for it.  Eg, I have count(preceding-sibling::*/Project_Phase) + 1 but it doesnt count, just keeps using 1 as the number. (this code is placed in a text box properties, Value field)&lt;br /&gt;&lt;br /&gt;Cheers,</description></item></channel></rss>