私はそうのようなXSLTテンプレートを呼び出す場合:XPath軸はXsltソートを尊重しますか?
<xsl:template match="hist:Steps">
<dgml:Links>
<xsl:apply-templates select="hist:Step">
<xsl:sort data-type="text" select="hist:End" order="ascending"/>
</xsl:apply-templates>
</dgml:Links>
</xsl:template>
は、以下のテンプレートでfollowing-sibling
軸は、文書の順序やソート順を調べるのでしょうか?
<xsl:template match="hist:Step">
<xsl:if test="following-sibling::hist:Step">
<dgml:Link>
<xsl:attribute name="Source">
<xsl:value-of select="hist:Workstation"/>
</xsl:attribute>
<xsl:attribute name="Target">
<xsl:value-of select="following-sibling::hist:Step/hist:Workstation"/>
</xsl:attribute>
</dgml:Link>
</xsl:if>
</xsl:template>
+1良い解決策。 –