<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - Project Cenote code released as Open Source - Comments</title>
 <link>http://www.talis.com/tdn/node/1718</link>
 <description>Comments for &quot;Project Cenote code released as Open Source&quot;</description>
 <language>en</language>
<item>
 <title>Hi Richard
Well spotted, I</title>
 <link>http://www.talis.com/tdn/node/1718#comment-624</link>
 <description>&lt;p&gt;Hi Richard&lt;/p&gt;
&lt;p&gt;Well spotted, I think you are right.&lt;/p&gt;
&lt;p&gt;We can see this selecting what comes after &#039;urn:isbn&#039; for each dc:identifier element, and *if* it is not the first isbn, stick a comma in front of it first.&lt;/p&gt;
&lt;p&gt;XSLT seems like a very cool way of presenting data.&lt;/p&gt;
&lt;p&gt;Chris Keene - University of Sussex.&lt;br /&gt;
PS the lack of a pre tag in the commenting system on TDN makes it very difficult to copy code info to this message box!&lt;/p&gt;
</description>
 <pubDate>Thu, 24 Jan 2008 14:09:57 +0000</pubDate>
 <dc:creator>ckeene</dc:creator>
 <guid isPermaLink="false">comment 624 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Cenote XSLT question</title>
 <link>http://www.talis.com/tdn/node/1718#comment-623</link>
 <description>&lt;p&gt;I&#039;m no expert, but I think the magic is done a bit lower down in the xslt (RenderItemDetails) specifically;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
xsl:template match=&quot;dc:identifier&quot;&lt;br /&gt;
		xsl:variable name=&quot;isbn&quot; select=&quot;substring-after(.,&#039;urn:isbn:&#039;)&quot; /&lt;br /&gt;
			xsl:if test=&quot;position() &amp;gt; 1&quot;&lt;br /&gt;
				xsl:text, /xsl:text&lt;br /&gt;
			/xsl:if&lt;br /&gt;
			xsl:value-of select=&quot;$isbn&quot; /&lt;br /&gt;
	/xsl:template&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I hope this helps.&lt;/p&gt;
&lt;p&gt;Richard Francis&lt;br /&gt;
Support, Talis&lt;/p&gt;
</description>
 <pubDate>Wed, 23 Jan 2008 13:18:22 +0000</pubDate>
 <dc:creator>richardfrancis</dc:creator>
 <guid isPermaLink="false">comment 623 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Cenote XSLT question</title>
 <link>http://www.talis.com/tdn/node/1718#comment-622</link>
 <description>&lt;p&gt;Have a question about one of the XSLT stylesheets used in Cenote. Due fully to my limited knowledge in this area and should probably be better addressed to a xslt-newbie forum.&lt;/p&gt;
&lt;p&gt;Anyway...&lt;/p&gt;
&lt;p&gt;For item details, you have the following code for Author(s)&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&amp;lt;td class=&quot;value author&quot;&amp;gt;&lt;br /&gt;
&amp;lt;xsl:variable name=&quot;author&quot; select=&quot;/rdf:RDF/rss:item/dc:creator[1]&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;xsl:value-of select=&quot;$author&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;xsl:for-each select=&quot;/rdf:RDF/rss:item/dc:creator[position() &amp;gt; 1]&quot;&amp;gt; &amp;amp;&lt;br /&gt;
&amp;lt;xsl:value-of select=&quot;text()&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This is fine, produce a table cell, print out the first author name, and for any additional names produce an  	&amp;amp; and then their name. Good.&lt;/p&gt;
&lt;p&gt;But here is the code for listing the ISBNs:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;td class=&quot;value isbn&quot;&amp;gt;&lt;br /&gt;
&amp;lt;xsl:apply-templates select=&quot;/rdf:RDF/rss:item/dc:identifier[starts-with(text(), &#039;urn:isbn:&#039;)]&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This produces output such as &quot;9781858983608, 1858983606&quot;. But I don&#039;t see how it is doing this. I thought there might be some sort of template or specification elsewhere in the file, or in another referenced file, but couldn&#039;t see one. I can see it selects &#039;dc:identifier&#039; and only those that start &#039;urn:isbn&#039; but can&#039;t see how it actually *removes* the preceding urn:isbn, and adds commas between each one. How does this code produce a nice list?&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt;Chris Keene - University of Sussex.&lt;/p&gt;
</description>
 <pubDate>Sun, 20 Jan 2008 20:17:49 +0000</pubDate>
 <dc:creator>ckeene</dc:creator>
 <guid isPermaLink="false">comment 622 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Project Cenote code released as Open Source</title>
 <link>http://www.talis.com/tdn/node/1718</link>
 <description>&lt;p&gt;As announced during last week&#039;s &lt;a href=&quot;http://www.talis.com/tdn/node/1716&quot;&gt;Talis Platform webinar&lt;/a&gt;, the code behind Talis&#039; Project Cenote is being released here on the TDN, licensed under the GNU General Public Licence.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.talis.com/tdn/node/1718&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.talis.com/tdn/node/1718#comments</comments>
 <pubDate>Mon, 26 Feb 2007 14:20:52 +0000</pubDate>
 <dc:creator>Paul Miller</dc:creator>
 <guid isPermaLink="false">1718 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
