[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: RQamar <qamar_rahil@xxxxxxxxxxx>
Date: Tue, 22 Feb 2005 13:09:15 +0000
Re:  creating top-level elements from within child  ele
templates are not "owned" by elements in the result tree they are distinguished by being matched to elements in the input. They then
generate a fragment of the output.


Clearly a single template can generate A1 and A2 as siblings rather than
A2 being a child of A1. You just make them siblings rather than a child
in the output.




Right I got your point. That looks good. So I can create a sibling element instead of a child. Perhaps its rather obvious for you on how to do it but I dont have any clue on how to create a sibling element. Could you advise me on that.

you say

and not the default

 <A>
     <A1>
           <A2/>
   </A1>
 </A>


But that is not the default. the default behaviour just gives you the character content and no elements at all in the result tree. You only have A2 as a child of A1 as that's the way you have it in your stylesheet 9as I said in my first reply)



You're right. Perhaps I should have said 'in the context of my stylesheet the behaviour is such'. Sorry about that ! :)

Thanks
Rahil

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.