Count Elements in xhtml with XSLT 1.0
后端 未结 1 1607
轻奢々
轻奢々 2021-01-25 18:42

i\'ve an XSLT 2.0 which transforms an xhtml Table into an InDesign XML Table. This XSLT counts the maximum number of

Elements within eve
相关标签:
1条回答
  • 2021-01-25 19:23
    <xsl:attribute name="aid:tcols">
      <xsl:for-each select="//tr">
        <xsl:sort select="count(td)" order="descending"/>
        <xsl:if test="position() = 1">
          <xsl:value-of select="count(td)"/>
        </xsl:if>
      </xsl:for-each>
    </xsl:attribute>
    

    should do.

    0 讨论(0)
提交回复
热议问题