cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/markup/xsp jpath.xsl
Date Mon, 25 Mar 2002 07:39:34 GMT
ovidiu      02/03/24 23:39:34

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/markup/xsp
                        jpath.xsl
  Log:
  Fixed various bugs related to how the code was generated.
  
  Revision  Changes    Path
  1.7       +15 -11    xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/markup/xsp/jpath.xsl
  
  Index: jpath.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/markup/xsp/jpath.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- jpath.xsl	24 Mar 2002 07:42:58 -0000	1.6
  +++ jpath.xsl	25 Mar 2002 07:39:34 -0000	1.7
  @@ -118,16 +118,18 @@
     </xsl:template>
   
     <xsl:template match="jpath:value-of">
  -    <xsl:choose>
  -      <xsl:when test="@select">
  -        jpathContext.getValue("<xsl:value-of select="@select"/>")
  -      </xsl:when>
  -      <xsl:otherwise>
  -        <xsl:message terminate="yes">
  -          <xsl:text>Required 'select' attribute in &lt;jpath:value-of&gt;
is missing!</xsl:text>
  -        </xsl:message>
  -      </xsl:otherwise>
  -    </xsl:choose>
  +    <xsp:expr>
  +      <xsl:choose>
  +        <xsl:when test="@select">
  +          jpathContext.getValue("<xsl:value-of select="@select"/>")
  +        </xsl:when>
  +        <xsl:otherwise>
  +          <xsl:message terminate="yes">
  +            <xsl:text>Required 'select' attribute in &lt;jpath:value-of&gt;
is missing!</xsl:text>
  +          </xsl:message>
  +        </xsl:otherwise>
  +      </xsl:choose>
  +    </xsp:expr>
     </xsl:template>
   
     <xsl:template match="jpath:continuation">
  @@ -139,7 +141,9 @@
           <xsl:otherwise>0</xsl:otherwise>
         </xsl:choose>
       </xsl:variable>
  -    kont.getContinuation(<xsl:value-of select="$level"/>).getId()
  +    <xsp:expr>
  +      kont.getContinuation(<xsl:value-of select="$level"/>).getId()
  +    </xsp:expr>
     </xsl:template>
   
     <xsl:template match="@*|*|text()|processing-instruction()">
  
  
  

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