![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - xsl:param reading a passed parameter in a browser >Thread Next - Re: xsl:param reading a passed parameter in a browser Re: xsl:param reading a passed parameter in a browserTo: NULL Date: 2/5/2007 4:58:00 PM * LutzMIRSL@a... wrote in microsoft.public.xsl: >I would like to open a xml-file in a browser and pass a parameter to >it like this: > >http://127.0.0.1//searchdata.xml?searchfor=thisword > >My xsl looks like this: There is no standard way to do this in XSLT 1.0, you would need to know the address of the document the style sheet is being applied to and then process the address to find the parameters. There is however no method to become aware of this address. A way around this would be to process the query string on the server and include its data in the XML document, another would be to write an extension function that returns the base- URI attribute value of a Node where that is supported. If you transform to HTML it would also be possible to generate a script element that then queries the location attribute of the document and either implements whatever the XSLT is supposed to do, or retransforms the document while setting the desired parameters, where that is possible. -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
