[Yanel-dev] Setting XSL for a resource's view
simon
simon at 333.ch
Wed Oct 13 11:00:24 CEST 2010
Balz Schreier schrieb:
> Thanks,
>
> so there are no standard prefixes defined in order to tell the resource in
> which repository to look it up?
>
this should be possible via the right protocol. see
http://yanel.org/en/documentation/basic-xml-resource-type.html#xsltprotocol
yanelrepo:REALM_ID:REPO_ID should do the trick. but i'm not sure if this
correctly implemented. i've never tested this.
cheers
simon
> Cheers
> Balz
>
> On Wed, Oct 13, 2010 at 10:28 AM, simon <simon at 333.ch> wrote:
>
>
>> Michael Wechner schrieb:
>>
>> On 10/7/10 7:31 PM, Balz Schreier wrote:
>>
>>>> I actually meant any kind of resource type.
>>>> I would like to know what prefixes are allowed in the resource.xml file
>>>> in the section below.
>>>>
>>>>
>>> You can do anything within
>>>
>>> <yanel:custom-config>
>>> ...
>>> </yanel:custom-config>
>>>
>>> and access it with
>>>
>>> src/core/java/org/wyona/yanel/core/ResourceConfiguration.java#getCustomConfiguration()
>>>
>>>
>>> Cheers
>>>
>>> Michael
>>>
>>>
>> hi balz
>>
>> as michail said, custom-config can be anything. but in case of the
>> usecase-resource see:
>> http://yanel.org/en/documentation/executable-usecase-resource.html for the
>> possible options.
>>
>> HTH
>> simon
>>
>>
>>>> Cheers
>>>> Balz
>>>>
>>>>
>>>> On Thu, Oct 7, 2010 at 6:20 PM, Michael Wechner <
>>>> michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>>>>
>>>> On 10/7/10 1:13 PM, basZero wrote:
>>>>
>>>>
>>>>> hi,
>>>>>
>>>>> can somebody tell me what prefixes
>>>>>
>>>>>
>>>> you mean the protocols/schemes? (like rthtdocs, ...)
>>>>
>>>>
>>>> are allowed withing the custom-config section in a resource.xml?
>>>>
>>>>> <yanel:custom-config>
>>>>> <views>
>>>>> <view id="default" type="XML">
>>>>> * <xslt>rthtdocs:/registration.xsl</xslt>*
>>>>> * <xslt>yanelhtdocs:/html.xslt</xslt>*
>>>>> * <xslt>*
>>>>>
>>>>> yanelrepo:<myrealmname>:app
>>>>>
>>>>> **:/app/html.xslt</xslt>**
>>>>> <mime-type>application/xhtml+xml</mime-type>
>>>>> </view>
>>>>> <view id="xml" type="XML">
>>>>> <mime-type>application/xml</mime-type>
>>>>> </view>
>>>>> </views>
>>>>> </yanel:custom-config>
>>>>>
>>>>> I only know that the third option (starting with yanelrepo) is
>>>>> working.
>>>>> But as I would be interested in hosting the XSLs in the htdocs
>>>>> folder,
>>>>>
>>>>>
>>>> which htdocs folder? The one of the resource type?
>>>>
>>>> I guess you are using the XML resource type which extends the
>>>> BasicXMLResource, right?
>>>>
>>>> Cheers
>>>>
>>>> Michael
>>>>
>>>> I would like to know the syntax for other allowed configurations.
>>>>
>>>>> Thanks
>>>>> Cheers
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Yanel-development mailing list Yanel-development at wyona.com
>>>> <mailto:Yanel-development at wyona.com>
>>>>
>>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>>>
>>>>
>>>>
>>>>
>>>
>> --
>> Yanel-development mailing list Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>
>>
>
>
More information about the Yanel-development
mailing list