[Yanel-development] Offline and I18n problem [Fwd: [Yanel-commits] rev 20628 - public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources]

Andreas Wuest awuest at student.ethz.ch
Wed Dec 6 23:39:03 CET 2006


Hi

On 6.12.2006 23:25 Uhr, Michael Wechner wrote:

> Andreas Wuest wrote:
> 
>> Hi
>>
>> On 6.12.2006 23:10 Uhr, Michael Wechner wrote:
>>
>>> Andreas Wuest wrote:
>>>
>>>> Hi
>>>>
>>>> On 6.12.2006 22:35 Uhr, Michael Wechner wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> It seems that the I18n transformation tries to connect to the 
>>>>> internet and hence it doesn't work when being offline.
>>>>>
>>>>> Any idea why it tries to connect to the internet?
>>>>
>>>>
>>>>
>>>> Maybe the document you are trying to parse using the SAXParser 
>>>> contains a DOCTYPE which points to an external resource?
>>>
>>>
>>>
>>> yes, that could be, whereas then we should register it locally:
>>>
>>> https://svn.wyona.com/repos/public/yanel/trunk/conf/entities
>>>
>>> resp.
>>> https://svn.wyona.com/repos/public/yanel/trunk/conf/catalog.xml
>>
>>
>> What should happen if someone creates a new page (e.g. via Yulup) and 
>> refers to an external entity file?
>>
>> It looks like the parser should trap such calls, download the DTD, add 
>> it to the local repository, and register it.
> 
> 
> that sounds reasonable
> 
>>
>> In order to redirect networked DTDs to the local registry, such a trap 
>> must exist anyway, no?
> 
> 
> IIRC at the moment it first looks up the local registry and when it 
> doesn't exist there, then it uses the "hypertext link".
> 
> So far we have added DTDs by hand to the registry, but what you describe 
> above seems to make sense, whereas I am not sure how
> hard it is to implement it.

Don't know either. But I guess one had to extend 
org.apache.xml.resolver.tools.CatalogResolver.

-- 
Kind regards,
Andi



More information about the Yanel-development mailing list