<?xml version="1.0"?>
<!--
- $Id: irspy2zeerex.xsl,v 1.2 2006-10-27 11:43:17 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:variable name="set" select="@set"/>
<xsl:variable name="ap" select="@ap"/>
<xsl:variable name="old"
- select="$old_indexes[explain:map/explain:attr/@set = $set and
- explain:map/explain:attr/text() = $ap]"/>
+ select="$old_indexes[explain:map/explain:attr/@set = $set and
+ explain:map/explain:attr/text() = $ap]"/>
<xsl:choose>
<xsl:when test="$old">
<xsl:call-template name="insert-index-section">
<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>
</xsl:template>
-
<xsl:template match="explain:dateModified">
<dateModified><xsl:value-of
select="/*/irspy:status/*[last()]"/></dateModified>