On 09.Aug.2001 -- 02:57 PM, Martin Benda wrote:
> Is it possible to access the value of an attribute inside of <xsp:logic> to
> use
> it in the Java Code?
> 
> For example
> 
> <xsl:template match="timer-util:verify-user">
>     <xsp:logic>
>         String driver = <xsp:content><xsl:value-of
> select="@driver"/></xsp:content>
>     ...
>     </xsp:logic>
> </xsl:template>
> 
> When I look inside the code cocoon produces I find the following...
> 
> ...
> String driver = this.characters("oracle.jdbc.driver.OracleDriver");
> ...
> 
> ... and of course this won't work, but is there any workaround?

The use of the <xsp:content/> tags as signals that the following is to
be outputted to the processing pipeline, what is obviously wrong
here. Just replace <xsp:content/> with quotes.

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to