[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|