cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azmi, Amir" <aa...@metatomix.com>
Subject RE: [C2] Patch for cookie.xsl
Date Mon, 20 Aug 2001 15:36:31 GMT
Thanks Dims, looks good.

-----Original Message-----
From: Davanum Srinivas [mailto:dims@yahoo.com]
Sent: Monday, August 20, 2001 9:14 AM
To: cocoon-dev@xml.apache.org
Subject: Re: [C2] Patch for cookie.xsl


Amir,

Sorry for the delay. Checked in your patch. Please try it out.

Thanks,
dims

--- "Azmi, Amir" <aazmi@metatomix.com> wrote:
> 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
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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


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


Mime
View raw message