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

RE: Followup question about transforming node location

Subject: RE: Followup question about transforming node location
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 28 Apr 2000 09:46:47 +0100
xsl 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


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.