<?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: Xpath differently in expression box and text box</title><link>https://www.infopathdev.com:443/forums/thread/9748.aspx</link><pubDate>Mon, 15 May 2006 18:26:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9748</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9748</wfw:commentRss><description>I have used this little trick several times today, maybe it will come in handy for you:&lt;br /&gt;&lt;br /&gt;Wherever you are trying to use the current() function put in this XPath: local-name(current()) and you will know instantly what node current() is refering to.</description></item><item><title>Re: Xpath differently in expression box and text box</title><link>https://www.infopathdev.com:443/forums/thread/9747.aspx</link><pubDate>Mon, 15 May 2006 16:52:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9747</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9747</wfw:commentRss><description>current() for an expression box will typically be different than current() for a text box (or other control). This is because the context of the expression box is the container (table, section, etc) whereas the context of the text box is itself.</description></item><item><title>Xpath differently in expression box and text box</title><link>https://www.infopathdev.com:443/forums/thread/5596.aspx</link><pubDate>Thu, 11 May 2006 16:21:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5596</guid><dc:creator>CGlover</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5596.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5596</wfw:commentRss><description>I have a drawing schedule.  Under each drawing is a list of revisions and a list of revisions.  When I create an issue I want to print, and store in the issue tree, the latest revision number.&lt;br /&gt;&lt;br /&gt;This works in an expression box, but not in a text box (I get an error):&lt;br /&gt;&lt;br /&gt;../../../../my:Drawings/my:Drawing[my:DwgNo = current()/my:IssDwgNo]/my:Revisions/my:Revision[last()]/my:RevNo&lt;br /&gt;&lt;br /&gt;This does not throw an error, but then it does not produce any result either:&lt;br /&gt;&lt;br /&gt;//my:Drawings/my:Drawing[my:DwgNo = ../my:IssDwgNo]/my:Revisions/my:Revision[last()]/my:RevNo&lt;br /&gt;&lt;br /&gt;This produces the correct answer in the text box, but only for drawing 1, of course:&lt;br /&gt;&lt;br /&gt;//my:Drawings/my:Drawing[my:DwgNo = 1]/my:Revisions/my:Revision[last()]/my:RevNo&lt;br /&gt;&lt;br /&gt;If anyone has an idea I would be grateful to hear about it.&lt;br /&gt;&lt;br /&gt;Rgds&lt;br /&gt;Clive Glover&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>