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

Re: XSL for structural transformations

Subject: Re: XSL for structural transformations
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Wed, 29 Jul 1998 10:29:57 -0500
xsl for each
Rakesh Mohan wrote:
> 
> I am trying to understand the scope of the structural transformations that
> can be performed
> using XSL (previous or forthcoming draft).
> 
> In XSL can I:
> 
> (1) Reverse a list
>  i.e.  <x><y>1</y><y>2</y>...<y>n</y></x>
> to    <x><y>n</y><y>n-1</y>...<y>1</y></x> for any i
> (2) Transpose a table (rows to columns, columns to rows).

XSL includes a full programming language. The complexity of your
conversions is not bounded.
 
> Are there any mechanism to bind values to variables in the pattern section
> so that these variables
> can then be used in the action section?

There is no need for this. All of the information available in the pattern
section (and much, much more) is available to the expression language
(JScript) in the action section. What you describe might be useful as a
convenience feature, though.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

The occasional act of disrespect for the American flag creates but a 
flickering insult to the values of democracy -- unless it provokes 
America into limiting the freedoms that are its hallmark.
           -- Paul Tash, executive editor of the St. Petersburg Times


 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.