xsl-list
[Top] [All Lists]

creating top-level elements from within child elements

2005-02-22 05:44:10
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--