RE: [xsl] Different conditional outputs in same Stylesheet or calling another stylesheet (version 1.0, Xalan)

Subject: RE: [xsl] Different conditional outputs in same Stylesheet or calling another stylesheet (version 1.0, Xalan)
From: "Pankaj Chaturvedi" <pankaj.chaturvedi@xxxxxxxxx>
Date: Wed, 27 Feb 2008 17:10:22 +0530
Thanks Michael as well as drkm for suggestions. It was an immense help.

Let me work out with small test files and will decide what to opt.

Thanks again and have a great day ahead.

Pankaj

 

-----Original Message-----
From: Michael Ludwig [mailto:mlu@xxxxxxxxxxxxx]
Sent: Wednesday, February 27, 2008 4:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Different conditional outputs in same Stylesheet or
calling another stylesheet (version 1.0, Xalan)


Pankaj Chaturvedi schrieb:
> 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.

Michael


Confidentiality Notice:" This message and any attachment(s)
contained here are information that is confidential, proprietary to
IDS Infotech Ltd. and its customers.
Contents may be privileged or otherwise protected by law. The
information is solely intended for the individual or the entity it
is addressed to. If you are not the intended recipient of this
message, you are not authorized to read, forward, print, retain,
copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately
by return e-mail and delete it from your computer."

Current Thread