5
我在XSLT的值,我需要把它放到p標籤的數據時屬性一把umbraco - XSLT變量爲數據屬性
<xsl:value-of select="current()/eventTime" />
<p class="time" data-time="1">Duration: <xsl:value-of select="current()/eventTime" /> hour(s)</p>
這將創建一個錯誤
<p class="time" data-time="<xsl:value-of select="current()/eventTime" />">Duration: <xsl:value-of select="current()/eventTime" /> hour(s)</p>
任何想法如何實現這一目標?
可愛優雅的解決方案謝謝。 – LeBlaireau