[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Handle Template resolvers



The template you give defines a parameter URL but never uses it.

If I add the following line verbatim to a handle server's "server_config" section:

    "namespace" = "<namespace><template delimiter='/'><value index='100' type='URL' data='https://svr/lookup/${extension}'/></template></namespace>"

then I can resolve any handle under the prefix homed at that server.

The same should work for you, unless perhaps you already have an HS_NAMESPACE in the prefix handle, which would override.

Where are you defining your template?

Robert

On 2013-06-10, at 08:01 , "Karunakar Neriyanuru" <karunakar.neriyanuru@csgsol.com> wrote:

> Thank you Robert.
> 
> I tried this earlier without much success
> 
> <namespace> <template delimiter="/">  <def parameter="URL"><value
> data="https://svr/lookup/${extension}"/></def> </template> </namespace>
> 
> I tried your suggestion below. But when queried for 12345/abc I get 
> 
> The handle you requested --
> 
> 12345/abc
> 
> -- cannot be found.
> 
> I read the documentation but having "/"as a delimiter seems to be special
> case. Any further help is much appreciated.
> 
> Thanks,
> Karunakar
> 
> -----Original Message-----
> From: Robert Tupelo-Schneck [mailto:schneck@cnri.reston.va.us] 
> Sent: 07 June 2013 22:54
> To: Karunakar Neriyanuru
> Cc: handle-info@cnri.reston.va.us
> Subject: Re: [Handle-info] Handle Template resolvers
> 
> You can find information about this in Chapter 11 of the Handle Technical
> Manual.
> 
> I haven't actually tried this, but a template like the following should
> work:
> 
> <namespace>
>  <template delimiter="/">
>    <value index="1" type="URL" data="http://svr/lookup/${extension}"/>
>  </template>
> </namespace>
> 
> Robert
> 
> On 2013-06-07, at 06:46 , "Karunakar Neriyanuru"
> <karunakar.neriyanuru@csgsol.com> wrote:
> 
>> I am trying to create a template resolver for the base handle, say 12345/,
> so that the template converts handles such as 12345/abc & 12345/efg to URLs
> like http://svr/lookup/abc &http://svr/lookup/efg respectively.
>> 
>> How can I do this?
>> 
>> Thanks,
>> Karunakar
> 
> 


_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info