Subject: Re: [xsl] Merging attributes in one XML file with node values in another (identical structure) From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 22 Jun 2006 11:43:45 -0400 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*"> <xsl:copy> <xsl:variable name="n" select="1+count(preceding::*)+count(ancestor::*)"/> <xsl:copy-of select="document('m2.xml')/descendant::*[$n]/@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template>
</xsl:stylesheet>
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Merging attributes in one, David Carlisle | Thread | Re: [xsl] Merging attributes in one, David Carlisle |
Re: [xsl] Merging attributes in one, David Carlisle | Date | [xsl] Finding the first among equal, Peter Riocreux |
Month |