0
我只是在學習xsl。我試圖連接兩個變量的值並在它們之間加上一個連字符。這是我的代碼:xsl:將兩個變量連接成新的變量
<xsl:variable name="checkboxvalue" select="translate(@value, ' ', '')" />
<xsl:variable name="questionname" select="{ancestor::element/attribute::name}"/>
<xsl:variable name="newcheckboxvalue" select="concat($questionname,-,$checkboxvalue)"/>
當我運行使用該.xsl文件一頁面我得到 意外標記\「{\」路徑表達式「‘致命錯誤:意外的標記\’,\」在路徑表達式
感謝任何幫助。
顯示您的代碼。 – randominstanceOfLivingThing