Carrot2 experimenting stylesheet updated for use with cf targets.
authorJason Skomorowski <jason@indexdata.com>
Fri, 7 May 2010 13:45:29 +0000 (09:45 -0400)
committerJason Skomorowski <jason@indexdata.com>
Fri, 7 May 2010 13:45:29 +0000 (09:45 -0400)
etc/pp2out-to-carrot2.xsl

index a1d1677..5bdd7a0 100644 (file)
@@ -8,10 +8,10 @@
     <xsl:for-each select="show/hit">
     <document>
       <xsl:attribute name="id">
-        <xsl:value-of select="location/md-id" />
+        <xsl:value-of select="recid" />
       </xsl:attribute>
       <title><xsl:value-of select="md-title" /></title>
-      <url><xsl:value-of select="recid" /></url>
+      <url><xsl:value-of select="location/md-electronic-url" /></url>
       <snippet xml:space="preserve">
         <xsl:for-each select="md-description">
           <xsl:value-of select="." />