Re: Re: Re: Patch regarding TagSoup and JTidy

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/RfE-Tagsoup-configuration-in-properties-local-xml-tp2550129p3013056.html

>> Just one concern: this means that the Tidy properties file will be

>> loaded every time htmlStringToDocument() is called, right? And this
>> can be pretty often as this is used by all controls that output HTML.
>>
>> Somehow, this should be cached. What do you think?
>
> you're right, i didn't consider this. I'll try to find a solution. Maybe
> it would be nice for development purposes to keep that behaviour, so
> modifications to the JTidy config could take effect immediately. But in
> a production environment, loading the JTidy config every time surely
> isn't desirable.
As an implementation note: ideally we would have a trivial API for
this kind of caching against a single file. We do something similar to
cache e.g. XML Schemas in the XForms engine. But looking at how we do
that, it's not abstracted enough yet. Still, it shouldn't be too hard
to do right ;)

-Erik


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws