You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by ri...@locus.apache.org on 2000/01/07 14:20:53 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp xsp-java.xsl

ricardo     00/01/07 05:20:53

  Modified:    src/org/apache/cocoon/processor/xsp xsp-java.xsl
  Log:
  1.5:Made compatible with XT XSLT Transformer
  
  Revision  Changes    Path
  1.5       +14 -14    xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl
  
  Index: xsp-java.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/xsp-java.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- xsp-java.xsl	2000/01/05 13:49:26	1.4
  +++ xsp-java.xsl	2000/01/07 13:20:53	1.5
  @@ -1,38 +1,37 @@
   <?xml version="1.0"?>
  +<!--
   
  -<!-- $Id: xsp-java.xsl,v 1.4 2000/01/05 13:49:26 ricardo Exp $
  -
    ============================================================================
                      The Apache Software License, Version 1.1
    ============================================================================
  - 
  +
       Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
  - 
  +
    Redistribution and use in source and binary forms, with or without modifica-
    tion, are permitted provided that the following conditions are met:
  - 
  +
    1. Redistributions of  source code must  retain the above copyright  notice,
       this list of conditions and the following disclaimer.
  - 
  +
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
  - 
  +
    3. The end-user documentation included with the redistribution, if any, must
       include  the following  acknowledgment:  "This product includes  software
       developed  by the  Apache Software Foundation  (http://www.apache.org/)."
       Alternately, this  acknowledgment may  appear in the software itself,  if
       and wherever such third-party acknowledgments normally appear.
  - 
  +
    4. The names "Cocoon" and  "Apache Software Foundation"  must not be used to
       endorse  or promote  products derived  from this  software without  prior
       written permission. For written permission, please contact
       apache@apache.org.
  - 
  +
    5. Products  derived from this software may not  be called "Apache", nor may
       "Apache" appear  in their name,  without prior written permission  of the
       Apache Software Foundation.
  - 
  +
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  @@ -43,12 +42,12 @@
    ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
    (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  - 
  +
    This software  consists of voluntary contributions made  by many individuals
    on  behalf of the Apache Software  Foundation and was  originally created by
  - Stefano Mazzocchi  <st...@apache.org>. For more  information on the Apache 
  + Stefano Mazzocchi  <st...@apache.org>. For more  information on the Apache
    Software Foundation, please see <http://www.apache.org/>.
  - 
  +
   -->
   
   <!-- written by Ricardo Rocha "ricardo@apache.org" -->
  @@ -124,6 +123,7 @@
       }
     </xsl:template>
   
  +  <!-- *** Allow for DYNAMIC element name!!! *** -->
     <xsl:template match="xsp:element">
       xspParentNode = xspCurrentNode;
       xspNodeStack.push(xspParentNode);
  @@ -228,7 +228,7 @@
         <xsl:when test="name(*[1]) = 'xsp:expr'">
           <xsl:value-of select="*[1]"/>
         </xsl:when>
  -      <xsl:otherwise>"<xsl:value-of select="normalize(.)"/>"</xsl:otherwise>
  +      <xsl:otherwise>"<xsl:value-of select="."/>"</xsl:otherwise>
       </xsl:choose>
     </xsl:template>