cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java request.xsl
Date Fri, 14 Dec 2001 19:42:30 GMT
vgritsenko    01/12/14 11:42:30

  Modified:    src/org/apache/cocoon/components/language/markup/xsp/java
                        request.xsl
  Log:
  Add <xsp-request:get-server-port/>
  Fix <xsp-request:get-server-name as="xml"/>
  
  Revision  Changes    Path
  1.10      +27 -4     xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/request.xsl
  
  Index: request.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/java/request.xsl,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- request.xsl	2001/10/23 09:59:10	1.9
  +++ request.xsl	2001/12/14 19:42:30	1.10
  @@ -11,7 +11,7 @@
   
   <!--
    * @author <a href="mailto:ricardo@apache.org>Ricardo Rocha</a>
  - * @version CVS $Revision: 1.9 $ $Date: 2001/10/23 09:59:10 $
  + * @version CVS $Revision: 1.10 $ $Date: 2001/12/14 19:42:30 $
   -->
   
   <!-- XSP Request logicsheet for the Java language -->
  @@ -424,9 +424,32 @@
         </xsl:when>
         <xsl:when test="$as = 'xml'">
           <xsp:element name="xsp-request:server-name">
  -          <xsp:logic>
  -            XSPRequestHelper.getServerName(objectModel);
  -          </xsp:logic>
  +          <xsp:expr>
  +            (XSPRequestHelper.getServerName(objectModel))
  +          </xsp:expr>
  +        </xsp:element>
  +      </xsl:when>
  +    </xsl:choose>
  +  </xsl:template>
  +
  +  <xsl:template match="xsp-request:get-server-port">
  +    <xsl:variable name="as">
  +      <xsl:call-template name="value-for-as">
  +        <xsl:with-param name="default" select="'string'"/>
  +      </xsl:call-template>
  +    </xsl:variable>
  +
  +    <xsl:choose>
  +      <xsl:when test="$as = 'string'">
  +        <xsp:expr>
  +          (XSPRequestHelper.getServerPort(objectModel))
  +        </xsp:expr>
  +      </xsl:when>
  +      <xsl:when test="$as = 'xml'">
  +        <xsp:element name="xsp-request:server-port">
  +          <xsp:expr>
  +            (XSPRequestHelper.getServerPort(objectModel))
  +          </xsp:expr>
           </xsp:element>
         </xsl:when>
       </xsl:choose>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message