rewritten mod_dom instruction parsing code hooked into mod_dom indexing
[idzebra-moved-to-github.git] / test / xslt / dom-index.xsl
diff --git a/test/xslt/dom-index.xsl b/test/xslt/dom-index.xsl
deleted file mode 100644 (file)
index 82c7102..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:m="http://www.loc.gov/MARC21/slim"
-  exclude-result-prefixes="m"
-  version="1.0">
-  <!-- $Id: dom-index.xsl,v 1.2 2007-02-13 11:37:03 marc Exp $ -->
-  <xsl:output indent="yes" method="xml" version="1.0" encoding="UTF-8"/>
-  
-
-  <xsl:template match="text()"/>
-
-  <!--
-  <xsl:template match="processing-instruction()">
-    <xsl:copy-of select="."/>
-  </xsl:template>
-  -->
-
-  <xsl:template match="/m:record">
-    <xsl:processing-instruction name="zebra-2.0">
-      <xsl:text>record id=</xsl:text>
-      <xsl:value-of select="normalize-space(m:controlfield[@tag='001'])"/>
-      <xsl:text> rank=</xsl:text>
-      <xsl:value-of select="normalize-space(m:rank)"/>
-    </xsl:processing-instruction>
-
-    <record>
-      <xsl:apply-templates/>
-    </record>
-  </xsl:template>
-
-  <xsl:template match="m:controlfield[@tag='001']">
-
-    <control>
-      <xsl:processing-instruction 
-          name="zebra-2.0">index control</xsl:processing-instruction>
-      <xsl:value-of select="normalize-space(.)"/>
-    </control>
-  </xsl:template>
-  
-  <xsl:template match="m:datafield[@tag='245']/m:subfield[@code='a']">
-    <xsl:processing-instruction 
-        name="zebra-2.0">index title:w title:p title:s</xsl:processing-instruction>
-    <title>
-        <xsl:value-of select="."/>
-    </title>
-    <!-- comment -->
-    <?zebra-2.0 xyz?>
-  </xsl:template>
-
-</xsl:stylesheet>