Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xsl:param reading a passed parameter in a browser

From: Bjoern Hoehrmann <bjoern@---------.-->
To: 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/ 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent