Subject: [xsl] Merge - a.xml + b.xml = c.xml From: "Exide Arabellan" <exide@xxxxxxxxxxx> Date: Sat, 17 Aug 2002 05:50:04 +0000 |
<!-- load the merge file --> <xsl:variable name="social2" select="document('social2.xml')"/>
<xsl:template match="/"> <social> <xsl:for-each select="social/friend">
<!-- cache the friend's ID --> <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
<!-- copy the child nodes --> <friend> <xsl:copy-of select="child::*"/>
output.xml --------- <?xml version="1.0" encoding="UTF-16"?> <social> <friend> <city>Aloha</city> <job>Circuit City</job> <url>www.jz.com</url> <age>19</age> </friend> </social>
--- This is the output im striving for: --- output.xml --------- <?xml version="1.0" encoding="UTF-16"?> <social> <friend name="Jordon" lastname="Zander"> <city>Aloha</city> <job>Circuit City</job> <url>www.jz.com</url> <age>19</age> </friend> </social>
"I only do what my rice crispies tell me to" Exide Arabellan
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Using a parameter to repr, Dimitre Novatchev | Thread | Re: [xsl] Merge - a.xml + b.xml = c, Carsten Klein |
[xsl] Re: Using a parameter to repr, Dimitre Novatchev | Date | [xsl] Re: Using a parameter to repr, Dimitre Novatchev |
Month |