- <variable name="rows" select="exslstr:tokenize(., '
')[normalize-space(.) and not(starts-with(., '#'))]"/>
- <variable name="head" select="exsl:node-set($rows)[1]"/>
- <variable name="body" select="exsl:node-set($rows)[not(position()=1)]"/>
+ <variable name="rows" select="exslstr:tokenize(., '
')[normalize-space(.)!='' and not(starts-with(., '#'))]"/>
+ <variable name="head" select="$rows[1]"/>
+ <variable name="headcols">
+ <call-template name="书社:split">
+ <with-param name="source" select="string($head)"/>
+ <with-param name="separator" select="'	'"/>
+ </call-template>
+ </variable>
+ <variable name="body" select="$rows[not(position()=1)]"/>