cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <>
Subject Re: taglibs (was: XObject)
Date Tue, 05 Dec 2000 14:44:53 GMT

Michael Hussey wrote:

> I see your point about reinforcing the notion of using a namespace for 
> each taglib.  However, we have elements in our XSP page that are 
> associated with a namespace that is not associated with any taglib. This 
> forces us to declare that namespace in a child of <xsp:page>.  It makes 
> it awkward for those who use namespaces in their system for other 
> purposes since it adds more meaning to the simple declaration of a 
> namespace.

It is ok to use namespaces not associated with logicsheets.
The XSP processor (for both C1 and C2) does not complain if
it finds a namespace declaration whose uri does not match any
logicsheet. Thus, it's not necessary to "hide" additional
namespace declarations below the root element...

In general, the namespace mechanism for associating logicsheets
with XSP's does not limit or redefine namespace usage. (It's
true, though, that XSP C1 forces authors to declare additional
namespaces not used in the document itself but referenced but
included logichseets. This, in addition to associating logicsheets
with namespace prefixes, rather than uri's, is a real pita)

> For example, in C1 we have to declare the wdk namespace in the wdk:page 
> element, but it is customary to define them all at the document root 
> which is xsp:page:
> <xsp:page language="java" 
> xmlns:xsp="" 
> xmlns:wdktags="">
>   <wdk:page xmlns:wdk="">
>     <wdk:head>
>         ...
>     </wdk:head>
>     ...
>     <wdk:widgets>
>         ...
>     </wdk:widgets>
>   </xsp:page>
> </xsp:page>
> -----Original Message-----
> From: Ricardo Rocha []
> Sent: Tuesday, December 05, 2000 6:49 AM
> To: Cocoon Developers
> Subject: Re: taglibs (was: XObject)
> Torsten Curdt wrote:
>  >> The current XSP implementation allows for the inclusion of
>  >> "not-builtin" libraries by means of _top-level_ <xsp:logicsheet>
>  >> directives or root-level <?xml-logicsheet?> pi's.
>  >
>  > Some more questions:
>  >
>  > Which syntax should be preferred <xsp:logicsheet> or the PI?

View raw message