xhtmlテーブルをInDesignXMLテーブルに変換するXSLT2.0があります。このXSLTは、以下のテンプレートの行7のすべての行内の要素の最大数をカウントします( )。<td>
<tr>
max(for $td in //tr return count($td/td))
<xsl:template match="table">
<xsl:element name="id_table">
<xsl:attribute name="aid:trows">
<xsl:value-of select="count(child::*/tr)"/>
</xsl:attribute>
<xsl:attribute name="aid:tcols">
<xsl:value-of select="max(for $td in //tr return count($td/td))"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
XSLT 1.0でこれを実現する方法がわかりません。アイデアがあれば大歓迎です!残念ながら、ワークフローパイプラインには1.0プロセッサしかありません。