You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Andreas L. Delmelle" <a_...@pandora.be> on 2003/10/08 19:20:57 UTC

FOP website: address w.o. file extension defaults to pdf?

I just happened to type in the address

http://xml.apache.org/fop/fonts
(no extension)

in the browser's address bar (IE6), and to my surprise, I ended up looking
at the PDF version of the page in question.

Just wanted to know:
Is this deliberately done this way? (To put the focus on the PDF rendering
abilities of FOP)
Or is it just some weird, browser-related thing? (Come to think of it, gonna
try it in Safari on the Mac as well... If anything turns up, I'll keep you
posted.)


Greetz,

Andreas


Re: FOP website: address w.o. file extension defaults to pdf?

Posted by Clay Leeds <cl...@medata.com>.
Andreas,

Good catch! (BTW, as you'll be seeing shortly, it shows the PDF file in 
Safari as well). It would be annoying (bad) if going to 
http://xml.apache.org/fop also brought up a PDF file (it doesn't--just 
checked! ;-p).

Strange! I remember talk on w3.org discussing this type of thing:

   http://www.w3.org/Provider/Style/URI.html

A couple of notable quotes:

Q: What makes a cool URI?
A: A cool URI is one which does not change.

"URIs don't change: people change them."

hehehe... It's a feature, not a bug!

;-p

Andreas L. Delmelle wrote:
> I just happened to type in the address
> 
> http://xml.apache.org/fop/fonts
> (no extension)
> 
> in the browser's address bar (IE6), and to my surprise, I ended up looking
> at the PDF version of the page in question.
> 
> Just wanted to know:
> Is this deliberately done this way? (To put the focus on the PDF rendering
> abilities of FOP)
> Or is it just some weird, browser-related thing? (Come to think of it, gonna
> try it in Safari on the Mac as well... If anything turns up, I'll keep you
> posted.)
> 
> 
> Greetz,
> 
> Andreas



Re: FOP website: address w.o. file extension defaults to pdf?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andreas L. Delmelle wrote:

> I just happened to type in the address
> 
> http://xml.apache.org/fop/fonts
> (no extension)
> 
> in the browser's address bar (IE6), and to my surprise, I ended up looking
> at the PDF version of the page in question.
> 
> Just wanted to know:
> Is this deliberately done this way?

No. The FOP website is generated offline by forrest, which I doubt generates
content matching extensionless URLs.

BTW I can't reproduce this, Mozilla gets the HTML. I guess it has something
to do with some server automatism, perhaps content type negotiation.

You can ask on the forrest list whether they deal with the kind of URL
you tried, and perhaps an Apache HTTPD guru whether such an effect can be
caused by some server configuration settings. Eventually, I can take this
to the infrastructure guys.

J.Pietschmann