0
    <xsl:template name="split">
    <xsl:param name="list"/>
        <xsl:variable name="first">
                         <xsl:value-of select="substring-before($list,' ')"/>
                    </xsl:variable>
        <xsl:copy-of select="$first"/>
</xsl:template>

           <xsl:variable name="test">c0 c1 c2 c3 c4</xsl:variable>
                <xsl:variable name="var2>
                  <xsl:call-template name="split">
                        <xsl:with-param name="returnvalue">
                             <xsl:value-of select="$test"></xsl:with-param>
                  </xsl:call-template>
              </xsl:variable>

// 処理完了

テンプレートから値を c0 として返し、テンプレートの一致処理に戻り、再度分割テンプレートに移動し、c1 を返し、同じ処理を行ってから分割テンプレートに戻り、再び一致テンプレートで処理します。テスト変数の値に応じて...

これらの値を 1 つずつ取得してコードを処理するにはどうすればよいでしょうか..??

4

1 に答える 1