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

RE: Split into numbered files: without side-effect? (X

Subject: RE: Split into numbered files: without side-effect? (XSLT 2)
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 28 Sep 2007 14:24:59 +0100
RE:  Split into numbered files: without side-effect? (X
> > If you've got XPath expressions stored in an XML document, then the 
> > only way to evaluate them with standard XSLT is to generate a 
> > stylesheet and then execute it.
> 
> It is not the only way.
> 
> Someone (like me) may be able to parse  an XPath expression 

Well, yes, I was making the assumption that the user didn't want to write an
XPath processor.

> 
> Certainly, in most cases such "dinamism" is not needed and 
> may be avoided.

Actually, I see a very large number of XML-based applications that make use
in one way or another of dynamic XPath expressions - either expressions that
are constructed programmatically, or expressions that are read from
configuration files of one kind or another. I think it's a very useful
technique and I think it's a great shame that we weren't able to get it into
XSLT 2.0. Not that it's easy to specify - it's quite hard to find good
answers to all the context issues like namespaces, variables, and
user-defined functions.

(Sometimes the technique is also used to emulate higher-order functions,
which is not something I particularly encourage.)

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.