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

RE: Different conditional outputs in same Stylesheet o

Subject: RE: 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
RE:  Different conditional outputs in same Stylesheet o
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.



-----Original Message-----
From: Michael Ludwig [mailto:mlu@xxxxxxxxxxxxx]
Sent: Wednesday, February 27, 2008 4:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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.


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


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.
First Name
Last Name
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.