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/java/org/apache/cocoon/components/language/markup/xsp/java xscript-lib.xsl
Date Sun, 14 Apr 2002 04:06:49 GMT
vgritsenko    02/04/13 21:06:49

  Modified:    src/java/org/apache/cocoon/components/language/markup/xsp/java
                        Tag: cocoon_2_0_3_branch xscript-lib.xsl
  Log:
  fix xscript
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.1   +6 -8      xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl
  
  Index: xscript-lib.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/language/markup/xsp/java/xscript-lib.xsl,v
  retrieving revision 1.4
  retrieving revision 1.4.2.1
  diff -u -r1.4 -r1.4.2.1
  --- xscript-lib.xsl	28 Feb 2002 14:41:07 -0000	1.4
  +++ xscript-lib.xsl	14 Apr 2002 04:06:49 -0000	1.4.2.1
  @@ -1,6 +1,6 @@
   <?xml version="1.0" encoding="utf-8"?>
   
  -<!-- $Id: xscript-lib.xsl,v 1.4 2002/02/28 14:41:07 vgritsenko Exp $-->
  +<!-- $Id: xscript-lib.xsl,v 1.4.2.1 2002/04/14 04:06:49 vgritsenko Exp $-->
   <!--
   
    ============================================================================
  @@ -57,7 +57,7 @@
    * Date: September 19, 2001
    *
    * @author <a href="mailto:ovidiu@cup.hp.com>Ovidiu Predescu</a>
  - * @version CVS $Revision: 1.4 $ $Date: 2002/02/28 14:41:07 $
  + * @version CVS $Revision: 1.4.2.1 $ $Date: 2002/04/14 04:06:49 $
   -->
   
   <xsl:stylesheet
  @@ -125,9 +125,8 @@
                event stream -->
           <xsp:logic>
             try {
  -            <xsl:value-of select="$object"/>.toSAX(this.contentHandler);
  -          }
  -          catch (IllegalArgumentException ex) {
  +            <xsl:value-of select="$object"/>.toEmbeddedSAX(this.contentHandler);
  +          } catch (IllegalArgumentException ex) {
               <xscript:error><xsp:expr>ex.getMessage()</xsp:expr></xscript:error>
             }
           </xsp:logic>
  @@ -198,14 +197,13 @@
             <xsl:with-param name="parameters" select="$parameters"/>
           </xsl:call-template>
           XScriptObject result = <xsl:value-of select="$object"/>.transform(
  -             <xsl:value-of select="$stylesheet-object"/>,
  -             <xsl:value-of select="$params"/>);
  +            <xsl:value-of select="$stylesheet-object"/>, <xsl:value-of select="$params"/>);
   <!--
           System.out.println("input source =\n" + <xsl:value-of select="$object"/>);
           System.out.println("stylesheet source =\n" + <xsl:value-of select="$stylesheet-object"/>);
           System.out.println("transformation result =\n" + result);
   -->
  -        result.toSAX(this.contentHandler);
  +        result.toEmbeddedSAX(this.contentHandler);
         }
       </xsp:logic>
     </xsl:template>
  
  
  

----------------------------------------------------------------------
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