Re: [xsl] Fwd: Combing two different documents

Subject: Re: [xsl] Fwd: Combing two different documents
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Mon, 17 Jul 2006 18:03:06 +0200 (CEST)
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 riinvente le mail ! Dicouvrez le nouveau Yahoo! Mail et son interface rivolutionnaire.
http://fr.mail.yahoo.com

Current Thread