cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: xsp code sample
Date Thu, 13 Jan 2000 23:30:14 GMT
Ricardo Rocha wrote:

>   <!-- Namespaces included for resolution, not for library processing"
>   <xsp:page language="java"
>     xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>     xmlns:request="http://www.apache.org/1999/XSP/Request"
>     xmlns:sql="http://www.apache.org/1999/XSP/Sql"
>   >
>     <xsp:library
> href="resource://org/apache/cocoon/processor/xsp/library/java/request.xsl"/>
>     <xsp:library
> href="resource://org/apache/cocoon/processor/sql/sql-java"/>
>     <xsp:library href="../lib/my-java-lib.xsl"/> <!-- Implicit file:/
> protocol, à la stylesheet -->
>     . . .
>   </xsp:page>
> 
> I like the latter because:
> 
> 1) It allows for dynamic, request-time library loading (and reloading!) as
> opposed
>     to static, initialization time processing
> 2) It decouples library from namespace usage thus making it possible to use
> more
>     than one namespace in a library or not use a namespace at all
> 3) It allows for the same library to be applied more than once, should the
> need
>     arise. This is _not_ possible with the current namespace-based mechanism
> 4) It allows for name resolution based on the current document path, handy
> feature
>     commonly used for stylsheets and external entity references
> 
> What do you guys think?

I like the <xsl:library> tag, +1, the use of namespaces was an hack and
placed unnecessary contrains on XSP-orthogonal spaces... yes, I like
this more.

Good idea, Ricardo :)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message