xsl-list
[Top] [All Lists]

Re: [xsl] Fwd: Combing two different documents

2006-07-17 09:03:34
Mukul Gandhi wrote:

I believe, the following should work:

 <xsl:template match="*[* and not(*/*)]">
   <xsl:copy>
     <xsl:copy-of select="*" />
     <xsl:copy-of select="$doc2//*[not(*)]" />
   </xsl:copy>
 </xsl:template>

  No, the problem is the same.  You are in the context of a specific
element in the first tree, but copy all leaves of the second tree.  See
the Andrew's solution, how he uses the count of the preceding nodes to
target the right element in the second tree.

  Regards,

--drkm

























        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--