Subject: Re: [xsl] Different conditional outputs in same Stylesheet or calling another stylesheet (version 1.0, Xalan) From: Michael Ludwig <mlu@xxxxxxxxxxxxx> Date: Wed, 27 Feb 2008 12:02:27 +0100 |
Thanks Michael for the detailed explanation. Never used "mode" attribute but seems to perfect in my case.
One more question, don't you think that <xsl:import> or <xsl:include> (although I still do not know much about these two elements) will be more helpful in this case to avoid the long and complex stylesheet. I would prefer to modularize this rather having a single stylesheet, which later will be painful, if debugging is required.
Personally, I don't think that splitting code up into different stylesheets is a guarantee for less pain. But then, I'm not a very experienced XSL user.
But of course it may look more orderly to you. And if that is the purpose, why not go ahead and use xsl:include? To give an example, you might organise your different modes in stylesheets by the same name.
An xsl:import is used to override definitions in the calling stylesheet. An xsl:include is just a simple inclusion. Which one is better for you, depends on your approach. If unsure, pick xsl:include, which is simpler in concept.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Different conditional out, Pankaj Chaturvedi | Thread | RE: [xsl] Different conditional out, Pankaj Chaturvedi |
Re: [xsl] Different conditional out, Florent Georges | Date | RE: [xsl] Different conditional out, Pankaj Chaturvedi |
Month |