호출 템플릿의 결과에 템플릿을 적용 할 수 있습니까?XSLT - 호출 템플릿 결과에 템플릿 적용
예를 들어 아래의 xml과 2xslt.
이 Index.xml :
<?xml version="1.0" encoding="UTF-8"?>
<root>
<book>
<title>Ethics</title>
</book>
<book>
<title>Beyond Good and Evil</title>
</book>
</root>
index2.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:template match="/" name="temp2">
<foo>
<xsl:for-each select="//book">
<bar><xsl:value-of select="."/></bar>
</xsl:for-each>
</foo>
</xsl:template>
</xsl:stylesheet>
및 index.xsl 호출하는 index2.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:include href="index2.xsl" />
<!-- apply a template to the <xsl:call-template name="temp2" /> result -->
</xsl:stylesheet>
는에 템플릿을 적용 할 수있는 방법이 있습니까 index.xsl에 <xsl:call-template name="temp2" />
의 결과가 있습니까?
미리 감사드립니다.
을 쉬게 ry 명확하고 상세한 설명, 많이 고마워! – Eric