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

Re: Conditional Include statements

Subject: Re: Conditional Include statements
From: "C. M. Sperberg-McQueen" <cmsmcq@xxxxxxxxxxxxxxxxx>
Date: Wed, 1 Apr 2009 18:21:44 -0600
Re:  Conditional Include statements
On 31 Mar 2009, at 04:07 , Vyacheslav Sedov wrote:

XSLT stylesheets cannot modify themselves at run-time.

what about saxon:transform ;)


http://www.saxonica.com/documentation/extensions/functions/transform.html

That doesn't modify the stylesheet it's in. It simply calls a compiled stylesheet to process input and produce output. (Even if you call saxon:transform on the stylesheet containing the call to saxon:transform, the call will have no effect on the stylesheet containing the call. As Wendell Piez put it recently, nothing you do in XSLT ever has any effect on the source document; the XSLT stylesheet only looks at the source document to decide what to put into the result document.)

In other words, saxon:transform() is more like a call to
an external function than like self-modifying code.

And a good thing, too!  (I was once responsible for helping
maintain a complex system that had some self-modifying
code in some modules.  I'll never do that again.)


-- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net ****************************************************************

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.