[Yanel-dev] Accessing Yarep nodes from XSL directly

Balz Schreier balz.schreier at gmail.com
Thu Dec 23 10:58:52 CET 2010


Hi Michael,
yes I am fully aware of that. I always access the User object via the
IdentityManager.
Here in this case I was talking about a prototyp page which I use to try out
things ad-hoc.

So, I'll use it with precaution... But thanks a lot for your tip, this
should be described in the wiki too (of course with a big exclamation mark
next to it :-)

Cheers
Balz

On Thu, Dec 23, 2010 at 10:56 AM, Michael Wechner <michael.wechner at wyona.com
> wrote:

>  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-repo=
sitory.xml"/>
> </yarep-repositories>
>
> within the realm configuration (see http://www.yanel.org/en/documentation=
/realm/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('yanelrep=
o:/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
>
>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010122=
3/8e9dc2ed/attachment.htm


More information about the Yanel-development mailing list