Updating the recordSyntax elements too.
authorAnders S. Mortensen <sondberg@indexdata.dk>
Fri, 27 Oct 2006 12:27:38 +0000 (12:27 +0000)
committerAnders S. Mortensen <sondberg@indexdata.dk>
Fri, 27 Oct 2006 12:27:38 +0000 (12:27 +0000)
xsl/irspy2zeerex.xsl

index 0f82475..ebe4772 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-    $Id: irspy2zeerex.xsl,v 1.3 2006-10-27 11:45:18 sondberg Exp $
+    $Id: irspy2zeerex.xsl,v 1.4 2006-10-27 12:27:38 sondberg Exp $
 
     This stylesheet is used by IRSpy to map the internal mixed Zeerex/IRSpy
     record format into the Zeerex record which we store.
 
 
   <xsl:template match="explain:recordInfo">
+    <recordInfo>
+      <xsl:for-each select="/*/irspy:status/irspy:record_fetch[@ok = 1]">
+        <recordSyntax name="{@syntax}">
+          <elementSet name="F"/> <!-- FIXME: This should be probed too -->
+        </recordSyntax>
+      </xsl:for-each>
+    </recordInfo>
   </xsl:template>
 
 
@@ -92,7 +99,6 @@
   </xsl:template>
 
 
-
   <xsl:template match="explain:dateModified">
     <dateModified><xsl:value-of
                     select="/*/irspy:status/*[last()]"/></dateModified>