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

Merging two files

Subject: Merging two files
From: mjyoungblut@xxxxxxx
Date: Mon, 12 Feb 2001 09:54:33 -0600
merging two files
     I am trying to merge two distinct files - the primary file and a
secondary file.  I am merging them based on a distinct <NodeID> in each
file.  I am able to get all nodes such that:
     An id exists in the primary file
     The id exists in both the primary and secondary file

     However, I am unable to get the correct <NodeID>s from the secondary
file that don't exist in the primary file.  Currently, I am using something
like the following:

          <xsl:for-each select = "$YESTERDAY_PRODUCT">
               <xsl:if test = "$YESTERDAY_PRODUCT//NodeID[not
($YESTERDAY_PRODUCT//NodeID=NodeID)]">
                    <Product>
                         <xsl:attribute name="Action">D</xsl:attribute>

                         <xsl:copy-of select="*"/>
                    </Product>
               </xsl:if>
          </xsl:for-each>

          where $YESTERDAY_PRODUCT is a path in the secondary file.  This
currently gives me multiple copies of everything in the second file.

Thanks in advance,
     Matt Youngblut


 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.