cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azmi, Amir" <aa...@metatomix.com>
Subject [C2] Patch for cookie.xsl
Date Thu, 16 Aug 2001 14:18:04 GMT
Hi,
Cookie logicsheet has extra semicolons at places, which results in error
being thrown if I try to use it for instance as,
	if(<xsp-cookie:getValue name="test"/>.equals("blah-blah"))

Hence this patch.

Thanks,
Amir

Index: cookie.xsl
===================================================================
RCS file:
/home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/ma
rkup/xsp/java/cookie.xsl,v
retrieving revision 1.2
diff -u -r1.2 cookie.xsl
--- cookie.xsl	2001/05/23 12:32:17	1.2
+++ cookie.xsl	2001/08/16 14:13:39
@@ -148,7 +148,7 @@
 		<xsl:choose>
 			<xsl:when test="$as='cookie'">
 				<xsp:logic>
-
XSPCookieHelper.getCookies(objectModel);
+
XSPCookieHelper.getCookies(objectModel)
 				</xsp:logic>
 			</xsl:when>
 			<xsl:when test="$as='xml'">
@@ -184,7 +184,7 @@
 		<xsl:choose>
 			<xsl:when test="$as='cookie'">
 				<xsp:logic>
-
XSPCookieHelper.getCookie(objectModel, <xsl:value-of select="$name"/> ,
<xsl:value-of select="$index"/>);
+
XSPCookieHelper.getCookie(objectModel, <xsl:value-of select="$name"/> ,
<xsl:value-of select="$index"/>)
 				</xsp:logic>
 			</xsl:when>
 			<xsl:when test="$as='xml'">
@@ -210,7 +210,7 @@
 		</xsl:variable>
 
 		<xsp:logic>
-			XSPCookieHelper.getName(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+			XSPCookieHelper.getName(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 		</xsp:logic>			
 	</xsl:template>	
 
@@ -229,7 +229,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getComment(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getComment(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>	
 
@@ -248,7 +248,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getDomain(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getDomain(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>	
 
@@ -267,7 +267,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getMaxAge(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getMaxAge(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>
 
@@ -286,7 +286,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getPath(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getPath(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>	
 
@@ -305,7 +305,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getSecure(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getSecure(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>	
 
@@ -324,7 +324,7 @@
 		</xsl:variable>
 
 		<xsp:logic>
-			XSPCookieHelper.getValue(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+			XSPCookieHelper.getValue(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 		</xsp:logic>			
 	</xsl:template>	
 
@@ -343,7 +343,7 @@
 			</xsl:variable>
 	
 			<xsp:logic>
-				XSPCookieHelper.getVersion(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>);
+				XSPCookieHelper.getVersion(objectModel,
<xsl:value-of select="$name"/> , <xsl:value-of select="$index"/>)
 			</xsp:logic>			
 	</xsl:template>

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message