<?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>Next sibling in question sequence!</title><link>https://www.infopathdev.com:443/forums/thread/94554.aspx</link><pubDate>Thu, 28 Nov 2013 15:24:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94554</guid><dc:creator>infosare</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94554</wfw:commentRss><description>Hi there,

I am trying to get the next generated id for &amp;quot;question&amp;quot; by the following formula:

concat(local-name(..), &amp;quot;_&amp;quot;, count(preceding-sibling::*[local-name() = &amp;quot;question&amp;quot;]) + 1)

Somehow the above code only returns:

question_1
question_1

however, I want the output as below:

question_1
question_2
.......

Could you please help me in correcting my above formula.

Thanks,</description></item></channel></rss>