wsdl:importWSDLを解析する際に、私は多くのxsd:import要素に出くわします。@locationインポートを解析して、または@schemaLocationをパーサーに渡したいと思います。
目的は、インポートされたファイルがファイルをインポートするときにファイルリストを拡大することですfilea.wsdl;filez.xsd;filev.xsd。このようにして、以前にインポートしたファイルを削除できます。
私はこれらの線に沿って何かを考えるでしょう:
<xsl:param name="file-list"/>
<xsl:template match="/">
<xsl:param name="file-list"/>
<xsl:apply-templates />
</xsl:template>
<xsl:template match="wsdl:import">
<xsl:apply-templates select="document(@location)">
<xsl:with-param name="file-list" select="concat($file-list, ';', @location)`"/>
</xsl:apply-templates>
</xsl:template>