[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: writing out of the current boundary of an element
Nima Kaviani wrote: Hi > for example having the output below written by my XSLT and > considering that I am filling the values inside the inner, > I need to write another element, as a child of > <test:Base>, but based on the values I obtain while I am > writing the inner element IMHO, you have three options, if I correctly understood your description: 1/ compute both elements locally, and individually of each other. So you'll need to compute twice the intermediate value both values are based on; 2/ compute the intermediate value once, and then use it while creating the two elements. They will be created either in the same template or in templates applied from the template that computes the intermediate value, passing it by parameter. 3/ in XSLT 2.0, you can use micro-pipelining to create a first version of your output, without the second element, then use it as the input of a second transformation in your same stylesheet, to add the second element, knowing what the intermediate tree looks like. In XSLT 1.0, the only way to achieve 3/ is with two separate stylesheets, and running them as two separate transformations (or maybe by using extensions, of course). Regards, --drkm ___________________________________________________________________________ Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses http://fr.answers.yahoo.com
|
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
|