Changeset 4621

Show
Ignore:
Timestamp:
02/18/08 16:03:22 (10 months ago)
Author:
xmlhacker
Message:

various debug updates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Web/4lessig.org/Web.config

    r4614 r4621  
    4040  <system.web> 
    4141    <httpHandlers> 
     42      <add verb="GET,HEAD" path="/service/session/validate-request/*.op" type="Nuxleus.Web.HttpHandler.NuxleusHttpAsyncRequestValidationHandler,Nuxleus.Web"/> 
    4243      <add verb="*" path="/service/4lessig/foo/*.op" type="Nuxleus.Web.HttpHandler.NuxleusHttpAsyncFormHandler,Nuxleus.Web"/> 
    4344      <add verb="*" path="*.op" type="Nuxleus.Web.HttpHandler.NuxleusHttpAsyncXmlServiceOperationHandler,Nuxleus.Web"/> 
  • trunk/nuxleus/Web/4lessig.org/index.page

    r4613 r4621  
    1717        <page:output> 
    1818            <page:head src="/page/output/head/base.xml" /> 
    19             <page:body src="/page/output/body/base.xml" />  
     19            <page:body src="/page/output/body/base.xml" /> 
    2020        </page:output> 
    2121    </my:page> 
  • trunk/nuxleus/Web/4lessig.org/page/controller/atomictalk/base.xsl

    r4599 r4621  
    77  Russ Miles (mailto:aohacker@gmail.com; http://www.russmiles.com/) 
    88--> 
    9 <xsl:stylesheet version="1.0" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:response="http://nuxleus.com/message/response" xmlns:session="http://atomictalk.org/session" xmlns:geo="http://nuxleus.com/geo" xmlns:my="http://xameleon.org/my" xmlns:page="http://atomictalk.org/page" xmlns:doc="http://atomictalk.org/feed/doc" xmlns:service="http://atomictalk.org/page/service" xmlns:output="http://atomictalk.org/page/output" xmlns:head="http://atomictalk.org/page/output/head" xmlns:body="http://atomictalk.org/page/output/body" xmlns:advice="http://atomictalk.org/page/advice" xmlns:view="http://atomictalk.org/page/view" xmlns:layout="http://atomictalk.org/page/view/layout" xmlns:form="http://atomictalk.org/page/view/form" xmlns:menu="http://atomictalk.org/page/view/menu" xmlns:exsl="http://exslt.org/common" xmlns:resource="http://atomictalk.org/page/resource" xmlns:model="http://atomictalk.org/page/model" xmlns:app="http://purl.org/atom/app#" xmlns:atompub="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="html exsl my app response advice atom head page service resource output form body view menu model msxsl doc atompub"> 
     9<xsl:stylesheet version="1.0" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:request="http://nuxleus.com/session/request" xmlns:response="http://nuxleus.com/message/response" xmlns:session="http://atomictalk.org/session" xmlns:geo="http://nuxleus.com/geo" xmlns:my="http://xameleon.org/my" xmlns:page="http://atomictalk.org/page" xmlns:doc="http://atomictalk.org/feed/doc" xmlns:service="http://atomictalk.org/page/service" xmlns:output="http://atomictalk.org/page/output" xmlns:head="http://atomictalk.org/page/output/head" xmlns:body="http://atomictalk.org/page/output/body" xmlns:advice="http://atomictalk.org/page/advice" xmlns:view="http://atomictalk.org/page/view" xmlns:layout="http://atomictalk.org/page/view/layout" xmlns:form="http://atomictalk.org/page/view/form" xmlns:menu="http://atomictalk.org/page/view/menu" xmlns:exsl="http://exslt.org/common" xmlns:resource="http://atomictalk.org/page/resource" xmlns:model="http://atomictalk.org/page/model" xmlns:app="http://purl.org/atom/app#" xmlns:atompub="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="html exsl my app response advice atom head page service resource output form body view menu model msxsl doc atompub"> 
    1010 
    1111  <xsl:param name="closure-token-pre-delimiter" select="'|@@'"/> 
     
    3131  <xsl:param name="parameter-value-assigment-token" select="'='"/> 
    3232 
    33   <xsl:variable name="session-info" select="document('/service/session/get-session-request-info/')/response:message"/> 
     33  <xsl:variable name="session-info" select="document('/service/session/validate-request/')/response:message"/> 
    3434  <xsl:variable name="session-name" select="$session-info/response:session/@openid"/> 
    3535  <xsl:variable name="session-id" select="$session-info/response:session/@session-id"/> 
    36   <xsl:variable name="request-id" select="$session-info/response:session/response:request-guid"/> 
    37   <xsl:variable name="request-date" select="$session-info/response:session/response:request-date"/> 
     36  <xsl:variable name="request-id" select="$session-info/response:request-guid"/> 
     37  <xsl:variable name="request-date" select="$session-info/response:request-date"/> 
     38  <xsl:variable name="request-time" select="$session-info/response:request-time"/> 
    3839  <xsl:variable name="geo-ip" select="$session-info/response:geo"/> 
    39   <xsl:variable name="location" select="$geo-ip//response:city"/> 
     40  <xsl:variable name="ip" select="$geo-ip/response:ip"/> 
     41  <xsl:variable name="location" select="$geo-ip/response:city"/> 
    4042  <xsl:variable name="lat" select="$geo-ip/response:lat"/> 
    4143  <xsl:variable name="long" select="$geo-ip/response:long"/> 
     
    109111  </xsl:template> 
    110112 
    111 <!--   <xsl:template name="geo-ip-map-script"> 
    112     <xsl:param name="lat"/> 
    113     <xsl:param name="long"/> 
    114  
    115   </xsl:template> --> 
     113  <xsl:template match="geo:location"> 
     114    <xsl:value-of select="$location"/> 
     115  </xsl:template> 
     116 
     117  <xsl:template match="geo:lat"> 
     118    <xsl:value-of select="$lat"/> 
     119  </xsl:template> 
     120 
     121  <xsl:template match="geo:long"> 
     122    <xsl:value-of select="$long"/> 
     123  </xsl:template> 
     124 
     125  <xsl:template match="session:id"> 
     126    <xsl:value-of select="$session-id"/> 
     127  </xsl:template> 
     128 
     129  <xsl:template match="session:request-id"> 
     130    <xsl:value-of select="$request-id"/> 
     131  </xsl:template> 
     132 
     133  <xsl:template match="session:request-date"> 
     134    <xsl:value-of select="$request-date"/> 
     135  </xsl:template> 
     136 
     137  <xsl:template match="session:request-time"> 
     138    <xsl:value-of select="$request-time"/> 
     139  </xsl:template> 
     140   
     141  <xsl:template match="geo:ip"> 
     142    foo: <xsl:value-of select="$ip"/> 
     143  </xsl:template> 
    116144 
    117145  <xsl:template match="page:body"> 
     
    263291 
    264292  <xsl:template match="geo:location"> 
    265     <!-- <xsl:value-of select="$geo.location//response:city"/> --> 
    266293    <xsl:value-of select="$location"/> 
    267294  </xsl:template> 
     
    290317      </xsl:choose> 
    291318    </xsl:variable> --> 
    292     <!-- <xsl:apply-templates select="$local-news-doc/response:*[local-name() = current()/@topic]" mode="message"/> --> 
    293   </xsl:template> 
     319    <!-- <xsl:apply-templates select="$local-news-doc/response:*[local-name() = current()/@topic]" mode="message"/> --></xsl:template> 
    294320 
    295321  <xsl:template match="doc:local-flickr-photos"> 
    296     <!-- <xsl:apply-templates select="$local-flickr-images/response:*[local-name() = current()/@topic]" mode="flickr"/> --> 
    297   </xsl:template> 
     322    <!-- <xsl:apply-templates select="$local-flickr-images/response:*[local-name() = current()/@topic]" mode="flickr"/> --></xsl:template> 
    298323 
    299324  <xsl:template match="doc:local-blog-entries"> 
    300     <!-- <xsl:apply-templates select="$local-blog-entries/response:*[local-name() = current()/@topic]" mode="blogs"/> --> 
    301   </xsl:template> 
     325    <!-- <xsl:apply-templates select="$local-blog-entries/response:*[local-name() = current()/@topic]" mode="blogs"/> --></xsl:template> 
    302326 
    303327  <xsl:template match="*" mode="blogs"> 
  • trunk/nuxleus/Web/4lessig.org/page/view/form/add-support.xml

    r4614 r4621  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <view:module class="base" id="instance" xmlns="http://www.w3.org/1999/xhtml" xmlns:geo="http://nuxleus.com/geo" xmlns:doc="http://atomictalk.org/feed/doc" xmlns:view="http://atomictalk.org/page/view"> 
     2<view:module class="base" id="instance" xmlns="http://www.w3.org/1999/xhtml" xmlns:request="http://nuxleus.com/session/request" xmlns:session="http://atomictalk.org/session" xmlns:geo="http://nuxleus.com/geo" xmlns:doc="http://atomictalk.org/feed/doc" xmlns:view="http://atomictalk.org/page/view"> 
    33  <div class="form" id="pledgeSupport"> 
    44    <h1>Pledge your support 4Lessig 4Congress!</h1> 
    5     <form id="lessig" method="GET" action="/service/4lessig/add-support" target="_top"> 
     5    <form id="lessig" method="GET" action="/service/4lessig/add-support/" target="_top"> 
    66      <table id="pledgeSupportTable"> 
    77        <tr> 
     
    2828      </table> 
    2929    </form> 
     30    <h2>Debug Info</h2> 
     31    <ul> 
     32      <li>IP: <geo:ip/> 
     33      </li> 
     34      <li>City: <geo:location /> 
     35      </li> 
     36      <li>GeoLat: <geo:lat /> 
     37      </li> 
     38      <li>GeoLong: <geo:long /> 
     39      </li> 
     40      <li>SessionID: <session:id /> 
     41      </li> 
     42      <li>RequestID: <session:request-id /> 
     43      </li> 
     44      <li>RequestDate: <session:request-date /> 
     45      </li> 
     46      <li>RequestTime: <session:request-time /> 
     47      </li> 
     48    </ul> 
    3049  </div> 
    3150</view:module> 
  • trunk/nuxleus/Web/4lessig.org/service/session/validate-request/service.op

    r4599 r4621  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <?xml-stylesheet type="text/xsl" href="/transform/base.xslt"?> 
     2<?xml-stylesheet type="text/xsl" href="/service/transform/controller/session/validate-request/base.xslt"?> 
    33<service:operation xmlns:at="http://atomictalk.org" xmlns:session="http://xameleon.org/service/session" 
    44    xmlns:header="http://xameleon.org/service/http/header" xmlns:service="http://xameleon.org/service" 
  • trunk/nuxleus/Web/4lessig.org/service/transform/controller/session/validate-request/base.xslt

    r4599 r4621  
    1010    xmlns:browser-capabilities="clitype:System.Web.HttpBrowserCapabilities?partialname=System.Web" exclude-result-prefixes="#all"> 
    1111 
     12    <xsl:import href="../../base.xslt" /> 
    1213    <xsl:import href="../../../functions/funcset-Util.xslt" /> 
    1314    <xsl:param name="current-context" />