XSLT <xsl:call-template> 요소
정의와 사용법
<xsl:call-template> 요소는 지정된 템플릿을 호출할 수 있습니다.
문법
<xsl:call-template name="templatename"> <!-- Content:xsl:with-param* --> </xsl:call-template>
속성
속성 | 값 | 설명 |
---|---|---|
name | templatename | 필수. 호출되는 템플릿 이름을 정의합니다. |
예제
예제 1
처리 프로그램이 "description"이라는 템플릿을 호출하는 "car" 요소를 찾을 때, 다음과 같이 호출됩니다:
<xsl:template match="car"> <xsl:call-template name="description"/> </xsl:template>