[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] copying child nodes n-level deep
Subject: [xsl] copying child nodes n-level deep From: Ram Anantha <ranantha@xxxxxxxxxxxxx> Date: Thu, 26 Jul 2001 09:48:53 -0500 |
Given: <A> <B> <C id="1"> <D id1="2"> <E>hello</E> </D> </C> </B> </A> I would like to copy all the elements and their children starting from D. The logic is, take the grand-child of B (in this case D) and copy it (along with all its children). The only known element name is B..How can I write a generic xsl code such that from the following schema: <AA> <B> <CC id="1"> <DD id1="2"> <EE>hello</EE> <FF>hello2</FF> </DD> </CC> </B> </AA> I can copy (B's grand child (DD) and its children): <DD id1="2"> <EE>hello</EE> <FF>hello2</FF> </DD> Thanks a lot for the help. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] XSLT with XML-Spy, Mengel Andre (FV/SLM | Thread | Re: [xsl] copying child nodes n-le, Rob Lugt |
AW: [xsl] XSLT with XML-Spy, Mengel Andre (FV/SLM | Date | RE: [xsl] How to implement common f, Oleg Tkachenko |
Month |
Keywords