Donar Posted March 3, 2011 Share Posted March 3, 2011 Good day forum.Can I (in XSLT 1) somehow obtain the HTTP query part of the actual XML page?Example:Suppose I have a page which was called with a query, e.g.:"http://example.com/page.xml?x1=1&x2=2&x3=3"Am I able to somehow obtain the name/value-pairs "x1"/"1" etc. with XSLT?Regards,DonarEdit: Fixed link. Link to comment Share on other sites More sharing options...
boen_robot Posted March 3, 2011 Share Posted March 3, 2011 In XSLT? No.But assuming that this XML is given to a browser and turned into an (X)HTML page by it, you can use JavaScript's location.search property to get the full query string.Also, if you have PHP on your server, you could make it return a different XML document based on the query string (which PHP can read more conviniently than JavaScript). Link to comment Share on other sites More sharing options...
Donar Posted March 4, 2011 Author Share Posted March 4, 2011 Thank you. It will be ASP then.RegardsDonar Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.