[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: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Wed, 27 Feb 2008 12:02:27 +0100
Re:  Different conditional outputs in same Stylesheet o
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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