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

Re: build a select clause or dynamic URI's

Subject: Re: build a select clause or dynamic URI's
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Thu, 11 Nov 2004 09:17:35 +0100
xsl where clause
* Pre-process or dynamically create the XSLT to include complete XPath
statements. When the XSLT is processed, the XPath statements are
static but any two invocations are likely to have very different
statements.

I had already gone the pre-processing route and have stuck with it.
Obviously, this approach requires an extra step, an extra piece of
software, and ties you to specific languages/environments. ...
...

It doesn't tie you to a language if you perform the preprocessing with XSL. I worked in a team that developed an abstract formalism to define a conversion. This XML formalism was converted to XSL using XSL and appeared very powerfull in the end, as multiple stylesheets for slightly different tasks could be generated from it. :-)


On one hand you find that the formalism is less powerfull as you want to hide XSL niche for the writer of the definition file. But it gives the opportunity to introduce shorthands for complex XSL tasks. I recently gave a solution for wrapping random sequences of particular elements in other elements that leans on the mode attribute quite heavily, which is difficult to maintain. In the formalism, it was just one command with which you merely say: 'I want to group (or wrap) sequences of nodes that match the following expression within the context of this or that.' Worked pretty much like a charm...

Grtz,
Geert

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.