[Yanel-dev] Accessing Yarep nodes from XSL directly

Michael Wechner michael.wechner at wyona.com
Thu Dec 23 10:56:25 CET 2010


Hi Balz

If you try to access the identities repository, then I would advise not =

to do this, but rather
use the IdentityManager, because an IdentityManager doesn't have to have =

a Yarep identities repository,
for example think of LDAP and hence Yanel does not make this accessible =

directly.

But if you nevertheless want to do this then as a workaround you can =

make it accessible with

<yarep-repositories>
   <repository id=3D"my-ac-identities" config=3D"config/ac-identities-repos=
itory.xml"/>
</yarep-repositories>

within the realm configuration (see http://www.yanel.org/en/documentation/r=
ealm/realm-configuration.html#yarep-repos)

and the it should be accessible with

yanelrepo:myrealm:my-ac-identities:/my/path.xml

but again I wouldn't recommend this.

Cheers

Michael



On 12/22/10 11:32 PM, Michael Wechner wrote:
> On 12/22/10 10:50 PM, Balz Schreier wrote:
>> Hi,
>>
>> For fast prototyping I often use this in XSL to access certain =

>> attributes in an XML:
>>
>> <xsl:variable name=3D"order-history" =

>> select=3D"document(concat('yanelrepo:/images/',$id, '.xml'))"/>
>>
>>
>> yanelrepo: seems to be calling the "data" repository of the realm,
>> so the above statement gets the nodes at <realmhome>/data/images/<id>.xml
>> is it possible to access other repositories like this? I am looking =

>> to a way to easily access the user.xml from the =

>> identities.repository.xml ?
>
> please see
>
> src/core/java/org/wyona/yanel/core/source/YanelRepositoryResolver.java
>
> and in particular
>
>  * Syntax:
>  * yanelrepo:{realmID}:{repoID}:{path}
>  * yanelrepo:{realmID}:{path}
>  * yanelrepo:{path}
>  *
>  * e.g.
>  * yanelrepo:myrealm:myrepo:/foo/bar.xml
>  * yanelrepo:myrealm:/foo/bar.xml
>  * yanelrepo:/foo/bar.xml
>
> The problem with this is that something like
>
> yanelrepo:THIS:{repoID}:{path}
>
> is missing ...
>
> HTH
>
> Michael
>>
>> Cheers
>> Balz
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010122=
3/2150b7d5/attachment.htm


More information about the Yanel-development mailing list