我有我需要合併成一個,然後按字母順序排序2個XSLT模板:如何在XSLT中組合兩個模板?
<xsl:template match="properties-for-sale">
<xsl:for-each select="entry">
<option value="{name}">
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</xsl:template>
<xsl:template match="properties-for-rent">
<xsl:for-each select="entry">
<option value="{name}">
<xsl:value-of select="name"/>
</option>
</xsl:for-each>
</xsl:template>
怎麼能在這個XSLT可以實現嗎?
感謝您的幫助!
我只是好奇,你是否需要'<期權價值= 「{名}」>'或'<期權價值= 「{名()}」>'..反正在我的答案我有使用過'{name}'.. –