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

Re: How to dinamically include parts of XSL ?

Subject: Re: How to dinamically include parts of XSL ?
From: Christian Bacher <bacher@xxxxxxxxxx>
Date: Fri, 05 May 2000 14:55:04 +0200
christian bacher
hello,
I think the best way is to do that on server side.
You can use cocoon from the apache xml project. There you can define
a variable processing structure for xml.
For example, we've switched the stylesheet  via a CGI parameter:
...../file.xml?style=Presentation1
Regards Christian



Paolo Audisio wrote:

> Hello,
> I'm new to the list.
> Do you think it's possible to include different sections of XSL files,
> so to have different presentation for the same XML file to choose
> during the navigation ?
>
> I have this example:
>
> -----------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>       <xsl:import href="Presentation1.xsl"/>
>       <xsl:import href="Presentation2.xsl"/>
>
> </xsl:stylesheet>
> -----------------------------
>
> I have to choose between "Presentation1.xsl" or
> "Presentation2.xsl".
> I thought to embed some JavaScript in the XSL file so to solve the
> problem in the transformed HTML file, but it will result a very big
> file with a lot of unuseful stuff.
>
> Any ideas ?
>
> What about the Apache server ?
> Can I change "on the fly" the XSL file to include ?
>
> Thank You very much!
> Sorry for my bad english.
>
> Paolo
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

--
Christian Bacher
SAXESS SoftwareDesign
Neuenhöfer Allee 125
50935 Köln
tel: +492219438228
fax: +492219438230
email: bacher@xxxxxxxxxx
http://www.saxess.com



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.