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

Catalyst of transformation?

  • From: Hans-Juergen Rennau <hrennau@yahoo.de>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 13 Oct 2020 06:08:12 +0000 (UTC)

Catalyst of transformation?
The complexity of a tree-to-tree transformation - how can it be minimized? In many situations, XSLT is probably the single best answer - the template principle is extremely effective in abolishing complexity. But are there other approaches which might in certain scenarios be alternatives or complement the XSLT principle? Here comes a train of thought considering a principle from the realm of chemistry.

(1) A catalyst may speed up a chemical reaction by orders of magnitude. Especially when large molecules are involved (biology!), the key mechanism is *spatial*: leading the partners of the reaction into spatial proximity and aligning the positions of key parts.

(2) Can the spatial alignment of large molecules be compared with structural alignment of large documents? The spatial alignment is achieved by rotating, turning, tilting .... A structural alignment might be achieved by applying certain simple operations which leave the tree semantics intact, yet change the structural expression: flattening hierarchy, adding hierarchy (grouping), inverting hierarchy (swapping parent-child), ...

(3) To illustrate, please consider this transformation
A
. B
. . C
=>
b
. a
. . c

By a simple inversion of hierarchy, the target would become
a
. b
. . c

and the complexity of the complete transformation would be reduced to two summands, (a) the operation of inversion, (b) a list of renamings. The first summand is very small, as it could be expressed by a short string resembling a function call, like: invert-hierarchy(/b, a). So the overall complexity would be (arguably) reduced.

I wonder if anybody can report similar approaches supported by *tools*? And, of course, I would be interested in your thoughts about this reasoning.

Hans-Jürgen Rennau





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.