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

RE: Is it possible to dynamically select portions of an XML

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
loading portions of xml
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;

  // Load the XSL
  var style = Server.CreateObject("Microsoft.XMLDOM");
  style.async = false;

  result = source.transformNode(style);


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


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.