From 925fa531caab83874c6965f026cb7993f05b857a Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 15 Sep 2010 10:36:06 +0000 Subject: [PATCH] Conditional XML debug implemented --- Builder/IISMainHandler/build.txt | 2 +- IISMainHandler/WebContext.cs | 10 ++++++++++ IISMainHandler/handlers/AbstractGetHandler.cs | 1 + .../handlers/request/AbstractPostHandler.cs | 1 + templates/Full/elems/Main.xslt | 12 +++++++----- 5 files changed, 20 insertions(+), 6 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 94ad64d..15448f1 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -1257 \ No newline at end of file +1261 \ No newline at end of file diff --git a/IISMainHandler/WebContext.cs b/IISMainHandler/WebContext.cs index 869ab52..2ecc4b6 100644 --- a/IISMainHandler/WebContext.cs +++ b/IISMainHandler/WebContext.cs @@ -38,6 +38,16 @@ namespace FLocal.IISHandler { } } + public XElement exportRequestParameters() { + return new XElement("get", + from i in Enumerable.Range(0, this.httprequest.QueryString.Count) + select new XElement("param", + new XAttribute("name", this.httprequest.QueryString.GetKey(i)), + this.httprequest.QueryString[i] + ) + ); + } + public HttpResponse httpresponse { get { return this.httpcontext.Response; diff --git a/IISMainHandler/handlers/AbstractGetHandler.cs b/IISMainHandler/handlers/AbstractGetHandler.cs index c666ff4..ccedb6b 100644 --- a/IISMainHandler/handlers/AbstractGetHandler.cs +++ b/IISMainHandler/handlers/AbstractGetHandler.cs @@ -27,6 +27,7 @@ namespace FLocal.IISHandler.handlers { context.exportSession(), context.userSettings.skin.exportToXml(), new XElement("currentUrl", "/" + String.Join("/", context.requestParts) + "/"), + context.exportRequestParameters(), }; } diff --git a/IISMainHandler/handlers/request/AbstractPostHandler.cs b/IISMainHandler/handlers/request/AbstractPostHandler.cs index 6490f83..9f64d98 100644 --- a/IISMainHandler/handlers/request/AbstractPostHandler.cs +++ b/IISMainHandler/handlers/request/AbstractPostHandler.cs @@ -34,6 +34,7 @@ namespace FLocal.IISHandler.handlers.request { new XElement("timestamp", DateTime.Now.Ticks.ToString()), context.userSettings.skin.exportToXml(), context.exportSession(), + context.exportRequestParameters(), }; } diff --git a/templates/Full/elems/Main.xslt b/templates/Full/elems/Main.xslt index cb22a8f..fa1dfea 100644 --- a/templates/Full/elems/Main.xslt +++ b/templates/Full/elems/Main.xslt @@ -25,11 +25,13 @@ - -
- Data used for authoring this XHTML document: - <xsl:copy-of select="/"/> - ]]> + + +
+ Data used for authoring this XHTML document: + <xsl:copy-of select="/"/> + ]]> +