Re: [xsl] creating top-level elements from within child elements

Subject: Re: [xsl] creating top-level elements from within child elements
From: omprakash.v@xxxxxxxxxxxxx
Date: Tue, 22 Feb 2005 18:47:02 +0530
    You say you want your output to be


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.


                      <qamar_rahil@yah         To:      xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                         
            >                cc:      (bcc: omprakash.v/Polaris)                                              
                                               Subject: [xsl] creating top-level elements from within child elements            
                      02/22/2005 06:14                                                                                          
                      Please respond                                                                                            
                      to xsl-list                                                                                               


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

    <A1/> <!--has some <xsl:apply-template>-->
    <A2/>  <!-- being create inside A1's apply-template>

 and not the
Would appreciate some
XSL-List info and archive:
unsubscribe, go to:
or e-mail: <

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

Current Thread