<?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: Autonumber in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/66684.aspx</link><pubDate>Thu, 19 May 2011 19:00:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66684</guid><dc:creator>Timberhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66684.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66684</wfw:commentRss><description>Patrick,

this is what I ended up with.

   count(preceding-sibling::my:Sheet/my:Children/my:Child_Headings/my:Child/my:fldCNumber) + 1

I still received  &amp;quot;preceding-sibling::my:Sheet/my:Children/my:Child_Headings/my:Child/my:fldCNumber&amp;quot; does not point to a valid location path of a field or group

Thanx</description></item><item><title>Re: Autonumber in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/66682.aspx</link><pubDate>Thu, 19 May 2011 18:01:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66682</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66682</wfw:commentRss><description>&lt;p&gt;Hi Timberhawk,&lt;/p&gt;
&lt;p&gt;Probably your xpath is incorrect. Go to the main data source and right click on the node for the fldCNumber and choose copy xpath. Paste that into notepad and inspect it. Probably need to add a my: namespace or something. Also, you may want to look at the Count(), Position() and Current() functions in xpath. Best of luck.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Autonumber in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/66681.aspx</link><pubDate>Thu, 19 May 2011 17:37:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66681</guid><dc:creator>Timberhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=66681</wfw:commentRss><description>Hi all.

I have a form with a repeating section.  I&amp;#39;d like to have each child section autonumbered.  I have tried &amp;quot;count(preceding-sibling::fldCNumber) + 1&amp;quot; in the default value and get an error (&amp;quot;...does not point to a valid location path of a field or group.&amp;quot;) and trying variations only gave me different errors.  What am I missing?

Thanx</description></item></channel></rss>