cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <rica...@apache.org>
Subject Re: [c2] question on configuring logicsheets in cocoon.xconf
Date Wed, 11 Apr 2001 09:13:31 GMT



Donald Ball wrote:
> heya. i'm working on my first real c2 site. i have a site-specific
> logicsheet which i wish to use. i presume i need to declare it in
> cocoon.xconf (is there an alternative?) i have this section:
>
>         <builtin-logicsheet>
>           <parameter name="prefix" value="wzi"/>
>           <parameter name="uri" value="http://example.com/xml/xsp/v1"/>
>           <parameter name="href" value="file:///path/to/shared.xsp"/>
>         </builtin-logicsheet>
>
> obviously, i don't want to use an absolute file: url, but without a
> protocol prefix, cocoon throws an exception trying to parse the url, so i
> can't just do "shared.xsp" and have done with it. i would presume that
> relative urls would be taken to be from the root of the webapp. is this
> behavior a bug or a feature?


Builtin logicsheets require a protocol prefix. The protocol factory that maps
to the webapp root is ContextURLFactory, prefix "context://". I suggest you
try "context://path/to/shared.xsp"

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


Mime
View raw message