[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: merge two xml

Subject: Re: merge two xml
From: Andrey Solonchuk <solo@xxxxxxxxxxxxxx>
Date: Thu, 2 Jan 2003 19:02:06 +0200
betwin errors
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.