次のマークアップがあります。
<para><span class="bidi"/><span class="ind"/>1</para>
私はこれを達成しようとしています...
<para><span style="direction:rtl; text-indent:10pt;">1</span></para>
しかし、私はこれを取得しています...
<para><span style="direction:rtl">1</span><span style="text-indent:10pt">1</span></para>
これが私のXSLTです。
<xsl:template match="span" name="spans">
<span>
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="@class eq 'bidi'">
<xsl:text>direction:rtl</xsl:text>
</xsl:when>
<xsl:when test="@class eq 'ind'">
<xsl:text>text-indent:10pt;</xsl:text>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:attribute>
<xsl:apply-templates/>
</span>
</xsl:template>
複数のスパンをすべてのクラス属性値で1にマージするにはどうすればよいですか?