Changeset 268

Show
Ignore:
Timestamp:
02/15/07 13:55:27 (2 years ago)
Author:
nsteiner
Message:

stub:form template added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:ignore set to
      .project
  • trunk/experiments/general/xsl/stub.xsl

    r217 r268  
    2828  <xsl:template match="stub:link"> 
    2929    <a> 
     30      <xsl:copy-of select="@*[local-name() != 'href']"/> 
    3031      <xsl:attribute name="href"> 
    3132        <xsl:value-of select="$__path"/> 
  • trunk/src/main/resources/xsl/master.xsl

    r264 r268  
    1111   
    1212  <xsl:param name="__path"></xsl:param> 
    13   <xsl:param name="__sessionid"></xsl:param> 
     13  <xsl:param name="__sessid"></xsl:param> 
     14  <xsl:param name="__sessname"></xsl:param> 
    1415  <xsl:param name="page"></xsl:param> 
    1516  <xsl:param name="lang"></xsl:param> 
  • trunk/src/main/resources/xsl/stub.xsl

    r264 r268  
    4444        </xsl:choose> 
    4545        <xsl:value-of select="@page"/> 
    46         <xsl:value-of select="$__sessionid"/> 
     46        <ixsl:if test="not($__sessid = '') and not($sessname = '')"> 
     47          <xsl:text>?</xsl:text> 
     48          <ixsl:value-of select="$__sessname"/> 
     49          <xsl:text>=</xsl:text> 
     50          <ixsl:value-of select="$__sessid"/> 
     51        </ixsl:if> 
    4752      </xsl:attribute> 
    4853      <xsl:value-of select="."/> 
     
    139144  </xsl:template> 
    140145 
     146  <xsl:template match="stub:form"> 
     147    <form> 
     148      <xsl:copy-of select="@*[local-name() != 'send-to-page']"/> 
     149      <xsl:variable name="method"> 
     150        <xsl:choose> 
     151          <xsl:when test="@method"> 
     152            <xsl:value-of select="@method"/> 
     153          </xsl:when> 
     154          <xsl:otherwise> 
     155            <xsl:text>post</xsl:text> 
     156          </xsl:otherwise> 
     157        </xsl:choose> 
     158      </xsl:variable> 
     159      <xsl:attribute name="method" select="$method"/> 
     160      <ixsl:if test="not($__sessid = '') and not($__sessname = '')"> 
     161        <input type="hidden"> 
     162          <ixsl:attribute name="name" select="$__sessname"/> 
     163          <ixsl:attribute name="value" select="$__sessid"/> 
     164        </input> 
     165      </ixsl:if> 
     166    </form> 
     167  </xsl:template> 
     168 
    141169  <xsl:template match="stub:langselect"> 
    142170    <xsl:variable name="langnodes" select="./stub:lang[@name = $lang]"/>