2014-01-23 6 views
0

<xsl:value-of select='fullName'/>을 HTML 단추 태그의 값 속성에 어떻게 사용할 수 있습니까?XSLT 루프 내에서 HTML 태그의 XML 호출

<xsl:for-each select="people/person"> 
    <tr> 
     <td> 
     <button type='button' class='mybutton' name='users' 
     value="<xsl:value-of select='fullName'/>">My Buttons 
     </button> 
     </td> 
    </tr> 
    </xsl:for-each> 

이 코드를 사용하면 구문 분석 오류가 발생하며 마크 업 변경 방법을 알 수 없습니다. 어떤 아이디어?

답변

2

대신 attribute value template을 사용하십시오.

<button type="button" class="mybutton" name="users" value="{fullName}">