<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extending Content Query Web Part XSLT with custom functions</title>
	<atom:link href="http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:43:19 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-31881</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 28 Oct 2009 06:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-31881</guid>
		<description>@Cedric: I think you have two options here. You can either use the current XSLT function and then include a loop which would pick a random number and check if the number hasn&#039;t been already picked. Another option is to modify the random XSLT function to make it return an array of random numbers and then use these numbers to select the random rows in the CQWP.</description>
		<content:encoded><![CDATA[<p>@Cedric: I think you have two options here. You can either use the current XSLT function and then include a loop which would pick a random number and check if the number hasn&#039;t been already picked. Another option is to modify the random XSLT function to make it return an array of random numbers and then use these numbers to select the random rows in the CQWP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-31802</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Tue, 27 Oct 2009 21:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-31802</guid>
		<description>Hi,
I used your article to show one random item and it worked fine, but I need to show more than one. Is this possible to have several random item (5 for example) shown in the webpart?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I used your article to show one random item and it worked fine, but I need to show more than one. Is this possible to have several random item (5 for example) shown in the webpart?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cedric</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-28649</link>
		<dc:creator>Cedric</dc:creator>
		<pubDate>Wed, 23 Sep 2009 08:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-28649</guid>
		<description>Thanks a lot for this post.
Works like a charm.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this post.<br />
Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-25895</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Fri, 14 Aug 2009 09:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-25895</guid>
		<description>@Per: I guess you would have to set the value of the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.cmsdataformwebpart.itemxsllink.aspx&quot; rel=&quot;nofollow&quot;&gt;ContentByQueryWebPart.ItemXslLink&lt;/a&gt; Property.</description>
		<content:encoded><![CDATA[<p>@Per: I guess you would have to set the value of the <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.cmsdataformwebpart.itemxsllink.aspx" rel="nofollow">ContentByQueryWebPart.ItemXslLink</a> Property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Per</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-25893</link>
		<dc:creator>Per</dc:creator>
		<pubDate>Fri, 14 Aug 2009 08:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-25893</guid>
		<description>Hi Waldek

Thank you very much for the information in the article. I find it very usefull.

Do you have any news about how to reference custom itemstyle without exporting and importing the webpart (preferably directly in your VS web part project).</description>
		<content:encoded><![CDATA[<p>Hi Waldek</p>
<p>Thank you very much for the information in the article. I find it very usefull.</p>
<p>Do you have any news about how to reference custom itemstyle without exporting and importing the webpart (preferably directly in your VS web part project).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-20953</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 10 Jun 2009 20:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-20953</guid>
		<description>@Yohan: you&#039;re right! Thanks for the tip :)</description>
		<content:encoded><![CDATA[<p>@Yohan: you&#039;re right! Thanks for the tip <img src='http://blog.mastykarz.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yohan</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-20946</link>
		<dc:creator>Yohan</dc:creator>
		<pubDate>Wed, 10 Jun 2009 19:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-20946</guid>
		<description>One other thing I noticed,
the Random.Next(int min, int max) function will always return a number lesser than \\&quot;max\\&quot; so one item in the list will be ignored...

Quick fix, change it to Random.Next(minValue, maxValue+1)

Reference: http://msdn.microsoft.com/en-us/library/2dx6wyd4.aspx</description>
		<content:encoded><![CDATA[<p>One other thing I noticed,<br />
the Random.Next(int min, int max) function will always return a number lesser than \\&amp;quot;max\\&amp;quot; so one item in the list will be ignored&#8230;</p>
<p>Quick fix, change it to Random.Next(minValue, maxValue+1)</p>
<p>Reference: <a href="http://msdn.microsoft.com/en-us/library/2dx6wyd4.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/2dx6wyd4.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yohan</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-19222</link>
		<dc:creator>Yohan</dc:creator>
		<pubDate>Wed, 20 May 2009 16:24:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-19222</guid>
		<description>Great post!  Thanks for sharing.

Just to let everyone know, when changing the xsl file references in the exported *.webpart file, you need to change the following properties:
MainXslLink
ItemXslLink
The link can be entered as a relative path (thankfully.  For example:
/Style%20Library/XSL%20Style%20Sheets/CustomItemStyle.xsl</description>
		<content:encoded><![CDATA[<p>Great post!  Thanks for sharing.</p>
<p>Just to let everyone know, when changing the xsl file references in the exported *.webpart file, you need to change the following properties:<br />
MainXslLink<br />
ItemXslLink<br />
The link can be entered as a relative path (thankfully.  For example:<br />
/Style%20Library/XSL%20Style%20Sheets/CustomItemStyle.xsl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas</title>
		<link>http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/comment-page-1/#comment-6734</link>
		<dc:creator>Jonas</dc:creator>
		<pubDate>Sat, 27 Sep 2008 04:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/extending-content-query-web-part-xslt-custom-functions/#comment-6734</guid>
		<description>Thanks for a really nice post!

/Jonas</description>
		<content:encoded><![CDATA[<p>Thanks for a really nice post!</p>
<p>/Jonas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
