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

Re: Multi page html output

Subject: Re: Multi page html output
From: "Qinghui Zeng" <zengqh@xxxxxxx>
Date: Fri, 5 Jul 2002 10:36:30 +0200
multi page html
I have the same problem before, my method is:

1, Client end method, output Javascript in xsl file like:
------------------------------------------------------------------
function getNextArticle(article){

 var xml = new ActiveXObject("MSXML2.DomDocument.3.0");
 xml.async = false;
 xml.load("***.xml");  // xml file

 var xsl = new ActiveXObject("MSXML2.FreeThreadedDomDocument.3.0");
 xsl.async = false;
 xsl.load("***.xsl");  // xsl file

 var template = new ActiveXObject("MSXML2.XSLTemplate")
 template.stylesheet = xsl

 processor = template.createProcessor()
 processor.input = xml
 processor.addParameter("article", article)
 processor.transform()

 document.open()
 document.write(processor.output)
 document.close()
}
------------------------------------------------------------------
and set a parameter in xsl file like  <xsl:param name="article"
select="'article1'"/>
use this parameter to control template match. so you can show only what you
want.

2. Sever end method, use servlet or asp to process parameter, and generate
output.


> I have an xml file containing records of 'articles'.
> I want to display each article on one HTML page, allowing the user to
navigate to the next/prev article.
>
> How can i do this using XSLT?
>
> -Madhavaraju
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 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.