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

Modularization of XSL stylesheets

Subject: Modularization of XSL stylesheets
From: Sylvain Hellegouarch <sh@xxxxxxxxxx>
Date: Tue, 12 Jul 2005 10:07:23 +0200
xsl modularization
Hi everyone,

I've been working on a simple web applictaion lately. I've build my application layout around blocks represented with xHTML DIVs. Now I don't know the layout when I start my application. Well I do know some basic stuff like the header and the footer but that's pretty much it. After that the layout is dynamically generated, ie, the overal blocks layout is set at runtime.

My app structure will look like this (more or less):

/
/modules
/modules/news
/modules/books

Each module has its own XSL stylesheet defining the block it represents, meaning the template starts with a <div> element.

At the root there is a stylesheet that defines the html elements : <html><head /><body /></html>

I'd like to be able to include my modules stylesheet within the <body> element at runtime.

One real simple way would be to import all my XSL stylesheets in my main stylesheet and simply do some apply-template I suppose, but I wondered If there would be a way to avoid having to import all my stylesheets and simply include the right blocks depending on what the user asked to view.

Hmm... now that I read my message back again, I think I misunderstand something here... and the fact I can't be really clear means I miss something :/

Bah... thanks for reading and if you can advise me it'll be nice.

Have a nice days.
- Sylvain

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.