<?xml version="1.0" encoding="utf-8"?>
<?markup
namespace DumpHttpContext;
formatting-phase dynamic;
syntax wiki;
author "Aaron G. Daisley-Harrison";
copyright "© Copyright 2009 - Daisley-Harrison Software";
support-url http://support.daisley-harrison.com/wiki/Support.XsltMarkupPlugin.ashx;
?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:http="http://daisley-harrison.com/namespaces/screwturnwiki/xsltmarkupplugin/http-context">
<xsl:output method="html" indent="yes"/>
<xsl:param name="match-number"/>
<xsl:param name="base-uri"/>
<xsl:param name="unnamed-parameter-0"/>
<xsl:param name="all-parameters"/>
<xsl:include href="ExampleHelpers.xslt"/>
<xsl:template match="/">
<h1>Dump Of http-content Namespace</h1>
http:MachineName() = <xsl:value-of select="http:MachineName()"/><br/>
http:RequestType() = <xsl:value-of select="http:RequestType()"/><br/>
http:RequestUrl() = <xsl:value-of select="http:RequestUrl()"/><br/>
http:UserAgent() = <xsl:value-of select="http:UserAgent()"/><br/>
http:UserHostAddress() = <xsl:value-of select="http:UserHostAddress()"/><br/>
http:UserHostName() = <xsl:value-of select="http:UserHostName()"/><br/>
http:RawUrl() = <xsl:value-of select="http:RawUrl()"/><br/>
http:PhysicalPath() = <xsl:value-of select="http:PhysicalPath()"/><br/>
http:PhysicalApplicationPath() = <xsl:value-of select="http:PhysicalApplicationPath()"/><br/>
http:PathInfo() = <xsl:value-of select="http:PathInfo()"/><br/>
http:LogonUserName() = <xsl:value-of select="http:LogonUserName()"/><br/>
http:LogonUserIsAnonymous() = <xsl:value-of select="http:LogonUserIsAnonymous()"/><br/>
http:LogonUserIsAuthenticated() = <xsl:value-of select="http:LogonUserIsAuthenticated()"/><br/>
http:IsSecureConnection() = <xsl:value-of select="http:IsSecureConnection()"/><br/>
http:IsLocal() = <xsl:value-of select="http:IsLocal()"/><br/>
http:IsAuthenticated() = <xsl:value-of select="http:IsAuthenticated()"/><br/>
http:HttpMethod() = <xsl:value-of select="http:HttpMethod()"/><br/>
http:FilePath() = <xsl:value-of select="http:FilePath()"/><br/>
http:CurrentExecutionFilePath() = <xsl:value-of select="http:CurrentExecutionFilePath()"/><br/>
http:ContentType() = <xsl:value-of select="http:ContentType()"/><br/>
http:AppRelativeCurrentExecutionFilePath() = <xsl:value-of select="http:AppRelativeCurrentExecutionFilePath()"/><br/>
http:ApplicationPath() = <xsl:value-of select="http:ApplicationPath()"/><br/>
http:AppRelativeCurrentExecutionFilePath() = <xsl:value-of select="http:AppRelativeCurrentExecutionFilePath()"/><br/>
http:AcceptTypes() = <xsl:value-of select="http:AcceptTypes()"/><br/>
http:AnonymousID() = <xsl:value-of select="http:AnonymousID()"/><br/>
http:QueryStringParameter('foo') = <xsl:value-of select="http:QueryStringParameter('foo')"/><br/>
http:PageParameter('foo') = <xsl:value-of select="http:PageParameter('foo')"/><br/>
http:FormParameter('foo') = <xsl:value-of select="http:FormParameter('foo')"/><br/>
http:HttpHeader('foo') = <xsl:value-of select="http:HttpHeader('foo')"/><br/>
http:MapPath('foo') = <xsl:value-of select="http:MapPath('foo')"/><br/>
http:HtmlEncode('foo') = <xsl:value-of select="http:HtmlEncode('foo')"/><br/>
http:HtmlDecode('foo') = <xsl:value-of select="http:HtmlDecode('foo')"/><br/>
http:UrlEncode('foo') = <xsl:value-of select="http:UrlEncode('foo')"/><br/>
http:UrlDecode('foo') = <xsl:value-of select="http:UrlDecode('foo')"/><br/>
http:ServerVariable('SERVER_NAME') = <xsl:value-of select="http:ServerVariable('SERVER_NAME')"/><br/>
http:CookieValue('foo') = <xsl:value-of select="http:CookieValue('foo')"/><br/>
http:SetApplicationVariable('foo','test-application-value') = <xsl:value-of select="http:SetApplicationVariable('foo','test-value')"/><br/>
http:ApplicationVariable('foo') = <xsl:value-of select="http:ApplicationVariable('foo')"/><br/>
http:SetSessionVariable('foo','test-session-value') = <xsl:value-of select="http:SetSessionVariable('foo','test-value')"/><br/>
http:SessionVariable('foo') = <xsl:value-of select="http:SessionVariable('foo')"/><br/>
http:AppendHttpHeader('foo','value') = <xsl:value-of select="http:AppendHttpHeader('foo','value')"/><br/>
http:AppendCookie('foo','value') = <xsl:value-of select="http:AppendCookie('foo','value')"/><br/>
http:AppendToIISLog('IIS log message') = <xsl:value-of select="http:AppendToIISLog('IIS log message')"/><br/>
http:Trace('trace-category','IIS trace message') = <xsl:value-of select="http:Trace('trace-category','IIS trace message')"/><br/>
http:Redirect('http://microsoft.com') = <b>I cannot show this one or you will not see this page</b><br/>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>