|
Subject: RE: Is it possible to dynamically select portions of an XML page? From: Ben Robb <Ben@xxxxxxxxxx> Date: Fri, 14 May 1999 18:07:19 +0100 |
I've had a general thought about this.
I am using the XML DOM object in IE5 - so the ASP page that sets it up looks
something like this:
<% var sourceFile = "http://<server>/inetpub/folder/somepage.xml";
var styleFile = "http://<server/inetpub/folder/somesheet.xsl";
// Load the XML
var source = Server.CreateObject("Microsoft.XMLDOM");
source.async = false;
source.load(sourceFile);
// Load the XSL
var style = Server.CreateObject("Microsoft.XMLDOM");
style.async = false;
style.load(styleFile);
result = source.transformNode(style);
Response.Write(result);
%>
Is there any reason why I can't have "styleFile" as an ASP page (say
someasp.asp?title=a_title"), and use lots of "Response.Write" calls in it?
That way I could say something like:
<%@ Language=VBScript %>
<%
strQS = Request.QueryString("title")
Response.Write("<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">")
%>
and so on, putting in the value for strQS as and when required.
Has anyone implemented anything like this?
Ben Robb
cScape Ltd
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Is it possible to dynamically s, Kay Michael | Thread | Re: Is it possible to dynamically s, Steve Weyer |
| RE: Is it possible to dynamically s, Kay Michael | Date | Icon Contest Results, Sean Brown |
| Month |