<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rssdatehelper="urn:rssdatehelper"><channel><title>BlogFodder comment feed for Building A Dynamic XPath Statement In XSLT</title><link>http://www.blogfodder.co.uk</link><pubDate></pubDate><generator>umbraco</generator><description>General techie &amp; development ramblings, source code and random other things</description><language>en</language><item><title>
          Re Building A Dynamic XPath Statement In XSLT by Dan</title><link>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-29</link><pubDate></pubDate><guid>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-29</guid><content:encoded><![CDATA[ Just had to say a big THANKS for this!
<br/>

<br/>
Dan]]></content:encoded></item><item><title>
          Re Building A Dynamic XPath Statement In XSLT by ryan</title><link>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-28</link><pubDate></pubDate><guid>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-28</guid><content:encoded><![CDATA[ Very nice solution! I have been battling with this problem for some time now and basically gave up and built it another way which is not dynamic. I will consider this next time!]]></content:encoded></item><item><title>
          Re Building A Dynamic XPath Statement In XSLT by Sean Mooney</title><link>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-27</link><pubDate></pubDate><guid>http://www.blogfodder.co.uk/2009/12/22/building-a-dynamic-xpath-statement-in-xslt#comment-27</guid><content:encoded><![CDATA[ You can also use the umbraco.library extension GetXmlNodeByXPath.
<br/>

<br/>
I have built a query much the same way as you, but then used to following to loop through:
<br/>

<br/>
&lt;xsl:for-each select=&quot;umbraco.library:GetXmlNodeByXPath($xpath)/node&quot;&gt;
<br/>

<br/>

<br/>
]]></content:encoded></item></channel></rss>
