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

SV: How to process the stylesheet on the client...

Subject: SV: How to process the stylesheet on the client...
From: Tomas.Oberg@xxxxxxxxxxxxxx
Date: Wed, 27 Nov 2002 09:02:23 +0100
xml sql stylesheet
Hi Alan!

Thank you for the advice. I think I have solved the problem now. I can pass
a parameter (@stylesheet) to an asp-site, and with VBscript I then assign
the different stylesheets by using cmd.Properties("xsl") = @stylesheet on
the Command-object cmd. And also, I have changed the xml template below to:

<sql:query xmlns:sql='urn:schemas-microsoft-com:xml-sql'
  Exec sp_gettest @Test for xml explicit

This way I get the xml-processing done by the web server instead of SQL
Server, i.e. it's on the web server that the transformation "rowset to xml"
is done. But I think this doesn't belong to xsl.


-----Ursprungligt meddelande-----
Från: Alan Flaherty [mailto:alan@xxxxxxxxxxxxxxxxxx]
Skickat: den 25 november 2002 23:49
Till: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Ämne: RE:  How to process the stylesheet on the client...


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



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Sent: 25 November 2002 14:59
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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
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'?>
  <sql:header xmlns:sql='urn:schemas-microsoft-com:xml-sql'>
    <sql:param name='Test'>1</sql:param>
  <sql:query xmlns:sql='urn:schemas-microsoft-com:xml-sql'>
    Exec sp_gettest @Test

But I want the stylesheet 'stylesheet.xsl' to be passed as a parameter -
how you may solve it. (If I add the attribute "?xsl=stylesheet.xsl" in
URL, the stylesheet is processed on the web server instead.)

Does anyone know how to make the transform to take place on the client?
would be thankful for advice.

(I'm using SQLXML 3.0 & SQL Server 2000)

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

 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


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.
First Name
Last Name
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.