Subject: Re: Building a pattern in XSL using one or more keywords passed From: julian.burman@xxxxxxxxxxxxxx Date: Tue, 12 Jan 1999 12:03:46 +0000 |
Hi Guy Minutes before I received your response I realised that I would have to do something along the lines of what you have suggested. To clarify the situation, I am using the IE5b2 parser on the server-side with ASP - code listed below. You suggest that I simply create the XSL file as an ASP file. By this do you mean that I should just rename the file from name.xsl to name.asp, or should I use ASP to create an XSL file that can then be processed using the parser. var doc = Server.CreateObject("Microsoft.XMLDOM"); doc.async = false; doc.load(Server.MapPath("howtotoc.xml")); string=Server.MapPath("howtotoc.xsl"); string += "?KEYWORD="+Request.QueryString("KEYWORD"); var style = Server.CreateObject("Microsoft.XMLDOM"); style.async = false; style.load(string); var result = doc.transformNode(style); Response.Write(result); Regards Julian Burman Guy_Murphy@xxxxxxxxxx on 12/01/99 10:36:58 Please respond to xsl-list@xxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxx cc: (bcc: Julian Burman/Pti) Subject: Re: Building a pattern in XSL using one or more keywords passed Hi. If you're using the IE5b2 parser on the server-side with ASP then what you're after is straight forward, otherwise I'm not sure. If you're familiar with ASP then simply creating your XSL document as an ASP file would allow you to do... <xsl:apply-templates select="<%= Request('keyword') %>" /> I've been using this in order to cascade display constant through XML and XSL documents. Cheers Guy. xsl-list@xxxxxxxxxxxxxxxx on 01/11/99 10:49:03 PM To: xsl-list@xxxxxxxxxxxxxxxx cc: (bcc: Guy Murphy/UK/MAID) Subject: Building a pattern in XSL using one or more keywords passed I want to be able to call an XSL with something like HTTP://something.xsl?keyword="phones". The XSL should then select all DOCUMENTS whose KEYWORDS equal or contain the querystring, along the lines of: <xsl:apply-templates select="DOCUMENT[KEYWORDS= Request.QueryString("keyword")]"/> How do I do this? Many thanks Julian Burman 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Building a pattern in XSL using, Guy_Murphy | Thread | Question about XSL, David LeBlanc |
Re: XSL authors needed right away, Guy_Murphy | Date | Re: Question about XSL, Guy_Murphy |
Month |