Conditional XML debug implemented

main
Inga 🏳‍🌈 14 years ago
parent 98d490d110
commit 925fa531ca
  1. 2
      Builder/IISMainHandler/build.txt
  2. 10
      IISMainHandler/WebContext.cs
  3. 1
      IISMainHandler/handlers/AbstractGetHandler.cs
  4. 1
      IISMainHandler/handlers/request/AbstractPostHandler.cs
  5. 2
      templates/Full/elems/Main.xslt

@ -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;

@ -27,6 +27,7 @@ namespace FLocal.IISHandler.handlers {
context.exportSession(),
context.userSettings.skin.exportToXml(),
new XElement("currentUrl", "/" + String.Join("/", context.requestParts) + "/"),
context.exportRequestParameters(),
};
}

@ -34,6 +34,7 @@ namespace FLocal.IISHandler.handlers.request {
new XElement("timestamp", DateTime.Now.Ticks.ToString()),
context.userSettings.skin.exportToXml(),
context.exportSession(),
context.exportRequestParameters(),
};
}

@ -25,11 +25,13 @@
<input type="hidden" name="data"/>
</form>
</div>
<xsl:if test="get/param[@name='debug'] = 'true'">
<xsl:text disable-output-escaping="yes"><![CDATA[<!--]]></xsl:text>
<br />
<xsl:text>Data used for authoring this XHTML document:</xsl:text>
<xmp><xsl:copy-of select="/"/></xmp>
<xsl:text disable-output-escaping="yes"><![CDATA[-->]]></xsl:text>
</xsl:if>
</body>
</html>
</xsl:template>

Loading…
Cancel
Save