RE: [xsl] Conditional Include statements

Subject: RE: [xsl] Conditional Include statements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 2 Apr 2009 09:02:48 +0100
> i can use doc(' ') to get stylesheet itself, then modify it, 
> and at last apply modified stylesheet to input document

That doesn't modify the stylesheet you're executing either. It creates a new
stylesheet and then calls it.

The point about "dynamic include" (which a lot of people ask for, without
realising what it would mean) is that it would allow a template rule to
modify itself.

In fact, the OP hasn't come back to us to explain the requirement, but what
people are usually looking for is some kind of dynamic despatch mechanism,
and of course there are existing ways of achieving this in XSLT that work
perfectly well.

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

Current Thread