[Yanel-dev] refering to resource type resources

Michael Wechner michael.wechner at wyona.com
Wed Jan 30 09:23:25 CET 2008


Josias Thöny wrote:

> Evaldas Taroza wrote:
>
>> Hi,
>>
>> I stumbled on a code line like this:
>> <script language="javascript" type="text/javascript" 
>> src="${yanel.back2realm}${yanel.reservedPrefix}/resource-types/http://www.wyona.org/yanel/resource/1.0::gallery/prototype.js"></script> 
>>
>>
>> Can anyone explain how does it work? I don't understand what goes 
>> after /resource-types/....
>
>
> The part after /resource-types/ identifies the resource type and the 
> file as follows:
>
> namespace-uri::name/file
>
> in this example:
> namespace-uri: http://www.wyona.org/yanel/resource/1.0
> resource-type name: gallery
> file: prototype.js
>
> Yanel will look for this file in the htdocs directory of that resource 
> type.
>
> Actually I think it's not very nice to use the namespace-uri as a part 
> of the URL. I'm not even sure if this complies to the RFC.


me neither, but we need the namespace in order to differentiate between 
the various resource types.

Cheers

Michi

> I might lead to problems if someone does string manipulations on the URL.
>
> josias
>
>>
>> Thanks,
>>
>> Evaldas
>>
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list