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 <jpath:value-of> 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 <jpath:value-of> 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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]