probably not exactly what you are looking for, but you could do this:

<a href="#">
        <xsp:attribute name="onclick"><xsp:expr>"addToUrl('header="+ dragid
+ "')"</xsp:expr>
        </xsp:attribute>
        <xsp:attribute
name="onmouseover"><xsp:expr>"ieShow("+varcounter+")"</xsp:expr></xsp:attrib
ute>
        Add to column
</a>

the <xsp:expr> tags are firmly enclosed within the attribute tags.  perhaps
someone else can think this through some more and give you a better option
;-)

> -----Original Message-----
> From: Magne Skjeret [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 2:49 AM
> To: [EMAIL PROTECTED]
> Subject: Wierd signs at lineshifts
> 
> 
> Greetings
> 
> I have a small problem with some lineshifts in my xsp.
> 
> It seems like a lineshift is added to the output html from 
> the xsp page.
> I am not sure if this is something my editor puts on, or if 
> it is a default 
> behaviour of cocoon.
> And if it is, is ther anything I can do about it?
> 
> I use cocoon-2.0.4 /jdk1.4.1 and IntelliJ editor.
> 
> 
> 
> This xsp code:
> 
> <a href="#">
>       <xsp:attribute name="onclick">
>               <xsp:expr>"addToUrl('header="+ dragid + "')"</xsp:expr>
>       </xsp:attribute>
>       <xsp:attribute name="onmouseover">
>               <xsp:expr>"ieShow("+varcounter+")"</xsp:expr>
>       </xsp:attribute>
>              Add to column
> </a>
> 
> Gives this ouput
> 
> <a href="#" onclick="&#xA; addToUrl('header=V319.F1')&#xA; " 
> onmouseover="&#xA; ieShow(0)&#xA; ">Add to column</a>
> 
> While this xsp:
> <a href="#">
>       <xsp:attribute 
> name="onclick"><xsp:expr>"addToUrl('header="+ dragid + 
> "')"</xsp:expr></xsp:attribute>
>       <xsp:attribute 
> name="onmouseover"><xsp:expr>"ieShow("+varcounter+")"</xsp:exp
> r></xsp:attribute>
>              Add to column
> </a>
> 
> gives this output:
> <a href="#" onclick="addToUrl('header=V319.F1')&#xA; " 
> onmouseover="&#xA; 
> ieShow(0)&#xA; ">
> 
> 
> Magne Skjeret 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to