[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxx http://www.saxess.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|