I am exporting from a FileMaker database and using an xsl style sheet to convert to Excel. Because of my database design I have two header rows before the data rows. I want to skip the first row. Is there a way to do that in the xsl? Below is my code.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fmp=" exclude-result-prefixes="xsl fmp">
<xslutput method="text"/>
<xsl:template match="/">
<xsl:variable name="record" select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW[1]"/>
<xsl:if test="boolean($record/fmp:COL[1]/fmpATA)"><xsl:value-of select="$record/fmp:COL[1]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[2]/fmpATA)"><xsl:value-of select="$record/fmp:COL[2]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[3]/fmpATA)"><xsl:value-of select="$record/fmp:COL[3]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[4]/fmpATA)"><xsl:value-of select="$record/fmp:COL[4]/fmpATA"/>
</xsl:if><xsl:text>
</xsl:text>
<xsl:for-each select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW">
<xsl:variable name="therecord" select="current()"/> <xsl:text>"</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[5]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[5]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[6]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[6]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[7]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[7]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[8]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[8]/fmpATA"/></xsl:if>
<xsl:text>"
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fmp=" exclude-result-prefixes="xsl fmp">
<xslutput method="text"/>
<xsl:template match="/">
<xsl:variable name="record" select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW[1]"/>
<xsl:if test="boolean($record/fmp:COL[1]/fmpATA)"><xsl:value-of select="$record/fmp:COL[1]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[2]/fmpATA)"><xsl:value-of select="$record/fmp:COL[2]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[3]/fmpATA)"><xsl:value-of select="$record/fmp:COL[3]/fmpATA"/>
</xsl:if><xsl:text>,</xsl:text>
<xsl:if test="boolean($record/fmp:COL[4]/fmpATA)"><xsl:value-of select="$record/fmp:COL[4]/fmpATA"/>
</xsl:if><xsl:text>
</xsl:text>
<xsl:for-each select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW">
<xsl:variable name="therecord" select="current()"/> <xsl:text>"</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[5]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[5]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[6]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[6]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[7]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[7]/fmpATA"/></xsl:if><xsl:text>","</xsl:text>
<xsl:if test="boolean($therecord/fmp:COL[8]/fmpATA)"><xsl:value-of select="$therecord/fmp:COL[8]/fmpATA"/></xsl:if>
<xsl:text>"
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>