スタイルシート変換言語 XSLT

<xsl:apply-imports>の解説です。  スタイルシート変換言語 XSLTリファレンス 

<xsl:apply-imports>

<xsl:apply-imports />
xsl:importによってインポートしたスタイルシートの規則にそって、カ レントノードとその子供にスタイルを設定します。 これにより、優先度の低いテンプレートを適用させる事ができます。
zipファイル 以下のサンプルをダウンロード(ZIP圧縮)
■ aaa.xml
<?xml version="1.0" encoding="Shift_JIS"?>
<?xml-stylesheet type="text/xsl" href="bbb.xsl"?>

<sample>
<samplename>スタイルシート<imp>変換言語</imp></samplename>
</sample>
■ bbb.xsl
<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="ccc.xsl" />

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="samplename">
<strong><xsl:apply-imports /></strong>
</xsl:template>

</xsl:stylesheet>
■ ccc.xsl
<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="imp">
<span style="font-weight:400">
<xsl:value-of select="."/>
</span>
</xsl:template>

</xsl:stylesheet>
サンプル
XSLT要素一覧
+ <xsl:apply-imports>
+ <xsl:apply-templates>
+ <xsl:attribute>
+ <xsl:attribute-set>
+ <xsl:call-template>
+ <xsl:comment>
+ <xsl:copy>
+ <xsl:copy-of>
+ <xsl:decimal-format>
+ <xsl:element>
+ <xsl:fallback>
+ <xsl:for-each>
+ <xsl:if>
+ <xsl:import>
+ <xsl:include>
+ <xsl:key>
+ <xsl:message>
+ <xsl:namespace-alias>
+ <xsl:number>
+ <xsl:otherwise>
+ <xsl:output>
+ <xsl:param>
+ <xsl:preserve-space>
+ <xsl:processing-instruction>
+ <xsl:sort>
+ <xsl:strip-space>
+ <xsl:stylesheet>
+ <xsl:template>
+ <xsl:text>
+ <xsl:value-of>
+ <xsl:variable>
+ <xsl:when>
+ <xsl:with-param>