<?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: How does InfoPath implement XPath?</title><link>https://www.infopathdev.com:443/forums/thread/93708.aspx</link><pubDate>Wed, 16 Oct 2013 19:59:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93708</guid><dc:creator>Shrout1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93708</wfw:commentRss><description>&lt;p&gt;A simple example of this conundrum is as follows:&lt;/p&gt;
&lt;p&gt;When entering a default value into a data field one can enter &amp;quot;../my:value1&amp;quot; - the relative location of that value to the current field. When entering this same field into a filter the field is specified as such &amp;quot;xdXDocument:get-DOM()/my:myFields/my:MasterSection/my:value1&amp;quot;. There is no relative path to the field. Clearly this touches on the way that InfoPath handles XPath.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It almost seems like InfoPath appends &amp;quot;current()../&amp;quot; in front of every default value. That might be incorrect on my behalf....&lt;/p&gt;</description></item><item><title>Re: How does InfoPath implement XPath?</title><link>https://www.infopathdev.com:443/forums/thread/91214.aspx</link><pubDate>Tue, 09 Jul 2013 13:49:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91214</guid><dc:creator>Shrout1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91214.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91214</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;Thanks for responding! This is more of a discussion question as I am trying to better understand how InfoPath uses XPath. &lt;a href="http://stackoverflow.com/questions/1022345/current-node-vs-context-node-in-xslt-xpath"&gt;Take a look at this StackOverflow question about &amp;quot;current&amp;quot; vs. &amp;quot;context&amp;quot; node&lt;/a&gt;. When referring to the &amp;quot;current&amp;quot; node, I don&amp;#39;t actually mean the &amp;quot;current()&amp;quot; function but actually the node that is being evaluated at that time... My lack of understanding could be creating a communication gap here as I may be misusing terminology.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems to me that XPath expressions are not actually contained in the XML itself... It seems that they are executed against the XML structure in much the same way that an SQL query is executed against a database. I run my SQL query and reference tables and columns to return a specifc value; I then must explicitly store that value somewhere. In InfoPath I use an XPath expression to reference a particular node and return a particular value. It seems that InfoPath provides the means of storing that value in a node, and typically XPath doesn&amp;#39;t do that on its own...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My mental model may be out of whack though, as XPath and SQL are very different creatures... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any insight into how InfoPath uses XPath at a fundamental level would be greatly appreciated!&lt;/p&gt;</description></item><item><title>Re: How does InfoPath implement XPath?</title><link>https://www.infopathdev.com:443/forums/thread/91175.aspx</link><pubDate>Mon, 08 Jul 2013 18:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91175</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91175.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91175</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having a bit of trouble understanding what it is exactly that you&amp;#39;re trying to figure out. Perhaps saying that the XPath is *housed* inside a node isn&amp;#39;t really the right way to look at it. InfoPath allows you to specify an XPath expression as the expression to determine the default value of a field, and the InfoPath mechanism does the work of setting the field to the result of these expressions. The &lt;strong&gt;current()&lt;/strong&gt; function is not an InfoPath invention. It is part of the XSLT standard, though it is not included in XPath standard.&lt;/p&gt;&lt;p&gt;If you could provide a bit of a more specific question about what it is that you&amp;#39;d like to know, that would probably help provide you with a more informative answer.&lt;/p&gt;</description></item><item><title>How does InfoPath implement XPath?</title><link>https://www.infopathdev.com:443/forums/thread/91079.aspx</link><pubDate>Wed, 03 Jul 2013 13:31:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91079</guid><dc:creator>Shrout1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=91079</wfw:commentRss><description>&lt;p&gt;InfoPath&amp;#39;s use of Xpath expressions as default values in the data source (I.E. the&amp;nbsp;context node) tends to baffle users on StackOverflow. I am often told, &amp;quot;XPath doesn&amp;#39;t actually change anything&amp;quot;; this true as XSLT is used for XML&amp;nbsp;transformations. When I state that the XPath expression is housed *inside* of a particular node, that tends to confuse users on Stack. I realize that the XPath expression isn&amp;#39;t actually *housed* in the node, but instead it dictates the value that is placed into that node. Also, setting the default value of a particular field in the data source (or really the default value of a node) means that the XPath executes while using that particular node as the context node. In every XPath tester I find online I cannot simulate this behavior. I assume that these behaviors occur due to the nature of the InfoPath template components in conjunction with the source XML. An XSN template file is really just a CAB file with many different components in it. Can anyone direct me to some specific resources or provide additional clarity about the specific behaviors of XPath inside of an InfoPath template?&lt;/p&gt;</description></item></channel></rss>