RE: Followup question about transforming node location
> I was wondering if you might be able to provide some > additional guidance. I am trying to do a > transformation (slightly different from the one > described in my previous post) by renaming a node and > its children and moving this newly named node to a > particular location in the output. I'm sorry, but I'm having trouble understanding the generic rules you want to apply. If you tell me you want to transform 3 into 7, I can think of any number of ways of doing it, most of which will probably not help you with your next problem of transforming 5 into 11. As a starter, there are two main ways of approaching stylesheet design: input driven (push) and output driven (pull). With the former, write a rule for everything that might be encountered in the input, and tell the processor what to do when it is found. With the second, structure the stylesheet according to the output you want to produce, and at each stage, pull in the relevant input from the source document. It's not at all clear from your problem description which style is appropriate here. But it looks a bit to me as if you are thinking in terms of a third style, which is not available in XSLT, in which the the result tree is built non-sequentially. Try to get that out of your thinking. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format