This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to dinamically include parts of XSL ?


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@saxess.com
http://www.saxess.com



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]