Hi, I already founded my error
I found diference betwin ./ and current()
my xsl is >>>
<xsl:variable name="user" select="document('foo2.xml')/root/import" />
<xsl:template match="/mapping">
<xsl:element name="mapping">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="class">
<xsl:if test="$user/class[(_at_)name = current()/@name]">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:template>
AS> HI
AS> I try merge two files (simply look like include in C++ )
AS> to create mapping.xml only with block I realy need
AS> == large mapping ==
AS> <mapping>
AS> <class name="a">
AS> <field name=...>
AS> <field name=...>
AS> </class>
AS> <class name="b">
AS> <field name=...>
AS> <field name=...>
AS> </class>
AS> <class name="c">
AS> <field name=...>
AS> <field name=...>
AS> </class>
AS> <mapping>
AS> and file wich pointed what nodes I need
AS> <include>
AS> <class name="c">
AS> <include>
AS> And I want result file to be
AS> <mapping>
AS> <class name="c">
AS> <field name=...>
AS> ...
AS> </class>
AS> <mapping>
AS> How to do this , I didnt understood
AS> Thanks
--
Best regards,
Andrey mailto:solo(_at_)ibis(_dot_)odessa(_dot_)ua
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list