Subject: Re: [xsl] creating top-level elements from within child elements From: omprakash.v@xxxxxxxxxxxxx Date: Tue, 22 Feb 2005 18:47:02 +0530 |
Hi, You say you want your output to be <A> <A1> <A2/> </A1> </A> Iam no great wiz in XSLT but I know as much that if you want a single A1 around your <A2/> you would need to wrap A1 around your apply-templates like this <A1><xsl:apply-templates ... /> </A1> But you have this <A1/> <xsl:apply-templates ... /> </A> which makes what you expect near impossible I think. Cheers, Omprakash.V RQamar <qamar_rahil@yah To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx oo.co.uk> cc: (bcc: omprakash.v/Polaris) Subject: [xsl] creating top-level elements from within child elements 02/22/2005 06:14 PM Please respond to xsl-list Hi This is a question I asked earlier in one of my earlier posts but didnt get any reponse on it. I'm reposting the question only because its important for me to get some response even if it is a "No, it cant be done" ! I wanted to know if its possible to create a new element say 'A2' from within the <xsl:apply-template> of 'A1' such that 'A2' is the immediate child of element 'A' and not 'A1'. So I want the structure to be <A> <A1/> <!--has some <xsl:apply-template>--> <A2/> <!-- being create inside A1's apply-template> </A> and not the default <A> <A1> <A2/> </A1> </A> Would appreciate some response. Thanks Rahil --~------------------------------------------------------------------ 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@xxxxxxxxxxxxxxxxxxxxxx> --~-- This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] creating top-level elemen, Jarno.Elovirta | Thread | [xsl] using an attribute's value as, Jakob Fix |
Re: [xsl] creating top-level elemen, RQamar | Date | Re: [xsl] creating top-level elemen, David Carlisle |
Month |