Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Conditional Include statements

From: "C. M. Sperberg-McQueen" <cmsmcq@----------------->
To:
Date: 4/2/2009 12:22:00 AM
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
****************************************************************


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent