Subject: Re: [xsl] merge two xml From: Andrey Solonchuk <solo@xxxxxxxxxxxxxx> Date: Thu, 2 Jan 2003 19:02:06 +0200 |
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[@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@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] merge two xml, Andrey Solonchuk | Thread | RE: [xsl] Re: How to output open/cl, Passin, Tom |
[xsl] merge two xml, Andrey Solonchuk | Date | RE: [xsl] Problems with Oracle XSL , John Pallister |
Month |