abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Absolutizing URIs
Date Mon, 26 Jun 2006 04:37:42 GMT
Relative URIs in content are preserved but there is currently no API for
resolving those URIs.  With XHTML/XML content, it's not that difficult
of a problem to solve.  It gets complicated when the content is escaped
HTML.


- James

Stephen Duncan wrote:
> What about within content?  For instance, in Tim Bray's feed:
> http://www.tbray.org/ongoing/ongoing.atom there's summary & content
> elements with the following in it: <a
> href='/ongoing/When/200x/2006/06/15/Switch-From-Mac'>  Could Abdera
> help resolve these href's?
> 
> -Stephen
> 
> On 6/20/06, James M Snell <jasnell@gmail.com> wrote:
>> All of the elements that allow relative uri's have a getResolved...
>> form.  For example, if you want to get the resolved value of a Link's
>> href attribute, you would call:
>>
>>   URI uri = entry.getAlternateLink().getResolvedHref();
>>
>> The will resolve the value against the current in-scope Base URI.
>>
>> - James
>>
>> Ugo Cei wrote:
>> > Hi folks,
>> >
>> > I have a question for you: what is the best way to absolutize relative
>> > URIs coming from an Atom document, assuming that I have parsed the
>> > document using Parser.INSTANCE.parse(inputStream, baseURI) ?
>> >
>> >     TIA,
>> >
>> >
>> >         Ugo
>> >
>> >
>> > --Ugo Cei
>> > Blog: http://agylen.com/
>> > Open Source Zone: http://oszone.org/
>> > Evil or Not?: http://evilornot.info/
>> > Company: http://www.sourcesense.com/
>> >
>> >
>> >
>>
> 
> 

Mime
View raw message