Subject: RE: [xsl] How to process the stylesheet on the client... From: "Alan Flaherty" <alan@xxxxxxxxxxxxxxxxxx> Date: Mon, 25 Nov 2002 22:48:39 -0000 |
Hi, You would have to process the url on the server anyways as the xml below is for a sql server query, you couldn't have it processed on the client. Is using a html page that picks up 1. a ?stylesheet parameter to the html page. 2. A value in the xml returned from the sqlserver using jscript and the MSXML object an option?? Then all the transformations are dome on the client the server just provides the data and the client matches it with a stylesheet. If this is ok I can send through the code to do it, but I'll have to do a bit of searching, that's why I'm asking first?? Or do you want the transformation done on the client without using any other clientside coding, just straight XML HTH Alan -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Tomas.Oberg@xxxxxxxxxxxxxx Sent: 25 November 2002 14:59 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] How to process the stylesheet on the client... Hi! I want to be able to use different stylesheets to my xml document. And I want the stylesheet to be processed by Internet Explorer 6.0 on the client. So I want the web server to send both the xml document and the xsl stylesheet to the client. This xml-template works: <?xml version='1.0' ?> <?xml-stylesheet type='text/xsl' href='stylesheet.xsl'?> <ROOT> <sql:header xmlns:sql='urn:schemas-microsoft-com:xml-sql'> <sql:param name='Test'>1</sql:param> </sql:header> <sql:query xmlns:sql='urn:schemas-microsoft-com:xml-sql'> Exec sp_gettest @Test </sql:query> </ROOT> But I want the stylesheet 'stylesheet.xsl' to be passed as a parameter - or how you may solve it. (If I add the attribute "?xsl=stylesheet.xsl" in the URL, the stylesheet is processed on the web server instead.) Does anyone know how to make the transform to take place on the client? I would be thankful for advice. (I'm using SQLXML 3.0 & SQL Server 2000) /Tomas 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to process the stylesheet, Tomas . Oberg | Thread | SV: [xsl] How to process the styles, Tomas . Oberg |
[xsl] Re: Concat dynamically assign, Joerg Heinicke | Date | RE: [xsl] Can XSLT produce binary o, Passin, Tom |
Month |