[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: creating top-level elements from within child ele

Subject: Re: creating top-level elements from within child elements
From: omprakash.v@xxxxxxxxxxxxx
Date: Tue, 22 Feb 2005 18:47:02 +0530
top level elements
    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                                         
                      oo.co.uk>                cc:      (bcc: omprakash.v/Polaris)                                              
                                               Subject:  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:  http://www.mulberrytech.com/xsl/xsl-list
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
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 http://www.polaris.co.in

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.