大きな XML ファイルと、いくつかの大きな XML ファイルの属性値の 1 つに一致する名前を持つ別の小さな XML ファイルがあります。小さな XML ファイルを使用して、大きな XML ファイルのレコードのサブセットを作成したいと考えています。私のXSLの試みはこのようなものです
<xsl:stylesheet xmlns:t="http://www.xyz.com/xml/Fixit" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="t:Fixit[.//t:Name[(@OrganisationName!=document('single_include.xml')//OrganisationName)]]"></xsl:template>
</xsl:stylesheet>
「single_include.xml」と呼ばれる私の小さな XML ファイルは次のようなものです
<ListOfOrganisationName>
<OrganisationName>
The first organisation
</OrganisationName>
<OrganisationName>
The second organisation
</OrganisationName>
</ListOfOrganisationName>
最初のレコードのみで機能するようです。何か案は?
これが理にかなっていることを願っています。