On 1/13/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote: > Josias Thoeny schrieb: > > On Thu, 2006-01-12 at 11:11 -0500, Bob Harner wrote: > >> The behavior seems to be correct for links to documents, but in my > >> case the link is actually to an asset (a JPEG file). So even though > >> the file really exists, it is't actually a "document". I believe > >> LinkRewritingTransformer should either ignore (leave in place) such > >> absolute links to assets or correctly check for their existence. What > >> do you think? > > > > The easiest way probably is to extend the DefaultDocumentBuilder s.t. it > > recognizes only urls with .html as document urls. This way the > > LinkRewritingTransformer should leave all other urls (e.g. with .jpg > > extension) in place. > > > However, if you plan to use the proxy mechanism and you want the asset > > urls to be rewritten using a proxy url prefix, you have to do it the > > other way (recognize the assets as documents). I'm not sure if this > > can be done easily, though. > > It's about time to handle documents and assets in the same way ... :( > > -- Andreas
We don't use the proxy mechanism, but we do export the pages to static files and serve them up through a separate web server. We already extended StaticHtmlExporter to translate the URL's of such links (to both assets and documents) in the document. I think I will extend (subclass) DefaultDocumentBuilder.java and see how that goes. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
