You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Rolf Kulemann <ma...@rolf-kulemann.com> on 2003/11/26 19:55:31 UTC

Re: Information hiding for URIs

On Wed, 2003-11-26 at 17:02, Rolf Kulemann wrote:
> On Wed, 2003-11-26 at 16:01, Tomasz Nowak wrote:
> > Rolf Kulemann <ma...@rolf-kulemann.com> wrote:
> > >
> > > > By default the lenya sitetree for example should display URIs like:
> > > > 
> > > > lenya/live/
> > > > lenya/live/contact/
> > > > lenya/live/products/
> > > > etc.
> > > > 
> > > > and not like this
> > > > 
> > > > lenya/live/index.html
> > > > lenya/live/contact.html
> > > > lenya/live/products.html
> > 
> > what about:
> > 
> > lenya/live
> > lenya/live/contact
> > lenya/live/products

I have again thought about it. And as TBL proposed we should leave the
slash away, which is already supported by the patch. 
I only have to change sitetree2nav.xsl to leave out file extensions by default without appending a slash.


A Question to the list:

How is content negotiation possible with Lenya/Cocoon/Tomcat?
Normally you can do it with Apache. But if I use tomcat with apache the
requests are delegated to the servlet engines context, arent't they.

I'm not that familiar with tomcat/cocoons capabilities for content neg.


-- 
Rolf Kulemann

	YOU TOO CAN MAKE BIG MONEY IN THE EXCITING FIELD OF
		      PAPER SHUFFLING!

Mr. TAA of Muddle, Mass. says:  "Before I took this course I used to be
a lowly bit twiddler.  Now with what I learned at MIT Tech I feel
really important and can obfuscate and confuse with the best."

Mr. MARC had this to say:  "Ten short days ago all I could look forward
to was a dead-end job as a engineer.  Now I have a promising future and
make really big Zorkmids."

MIT Tech can't promise these fantastic results to everyone, but when
you earn your MDL degree from MIT Tech your future will be brighter.

		SEND FOR OUR FREE BROCHURE TODAY!


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by Christian Egli <ch...@wyona.net>.
Rolf Kulemann <ma...@rolf-kulemann.com> writes:

> On Thu, 2003-11-27 at 10:16, Andreas Hartmann wrote:
> > Rolf Kulemann wrote:
> > 
> > [...]
> > 
> > > But I see your point with the file header stuff now. One problem when
> > > patching the DocuemntBuilder was the determination of the doctype. It is
> > > bound to the file extension, afaik.
> > 
> > Do you mean the doctype as referenced in the page envelope?
> > This is determined by the URIParameterizer (usually using the
> > SourceTypeAction). It is not related to the file extension.
> 
> Oh, yes, your are right. Can somebody tell me how the SourceResolver is
> working?

Do you mean the SourceTypeAction?
http://outerthought.net/forrest/cap.html

It is used in the parameter-doctype.xmap to determine the doctype of a
given document (see
http://cocoon.apache.org/lenya/docs/components/uri-handling/URIParametrizer.html).

-- 
Christian Egli       christian.egli@wyona.com   +41 1 272 9161
                     Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS      http://www.wyona.org http://www.wyona.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Thu, 2003-11-27 at 10:16, Andreas Hartmann wrote:
> Rolf Kulemann wrote:
> 
> [...]
> 
> > But I see your point with the file header stuff now. One problem when
> > patching the DocuemntBuilder was the determination of the doctype. It is
> > bound to the file extension, afaik.
> 
> Do you mean the doctype as referenced in the page envelope?
> This is determined by the URIParameterizer (usually using the
> SourceTypeAction). It is not related to the file extension.

Oh, yes, your are right. Can somebody tell me how the SourceResolver is
working?


-- 
Rolf Kulemann

Five is a sufficiently close approximation to infinity.
		-- Robert Firth


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by Andreas Hartmann <an...@apache.org>.
Rolf Kulemann wrote:

[...]

> But I see your point with the file header stuff now. One problem when
> patching the DocuemntBuilder was the determination of the doctype. It is
> bound to the file extension, afaik.

Do you mean the doctype as referenced in the page envelope?
This is determined by the URIParameterizer (usually using the
SourceTypeAction). It is not related to the file extension.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Wed, 2003-11-26 at 21:19, Gregor J. Rothfuss wrote:
> Rolf Kulemann wrote:
> 
> > What did you mean with "...when it comes to http headers..."?
> 
> sorry, was unclear. what i meant is to have different representations 
> for the same url. http://norman.walsh.name/2003/07/02/conneg
> 
> this particular aspect is not detracting from your concept though, just 
> some follow up ideas.
> 
> -gregor

Uuh. I think we shoudn't make our hands dirty with (re)implement a
content neg. in lenya. I think it is enough , at the mom, to support
uri's without file extension (simply). The rest should be carried out to
the web server i.e. apache. In lenya authoring/live area one can use the
fallback file extension normally configured within apache when using
content neg. i.e. always using jpg or so.

But I see your point with the file header stuff now. One problem when
patching the DocuemntBuilder was the determination of the doctype. It is
bound to the file extension, afaik.

Of course it would be great, if lenya could simulate content neg., but I
think there are more important thinks to implement like xmldb, asset
store, a site/pub administration module etc....


-- 
Rolf Kulemann

Many years ago in a period commonly know as Next Friday Afternoon,
there lived a King who was very Gloomy on Tuesday mornings because he
was so Sad thinking about how Unhappy he had been on Monday and how
completely Mournful he would be on Wednesday ...
		-- Walt Kelly


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Rolf Kulemann wrote:

> What did you mean with "...when it comes to http headers..."?

sorry, was unclear. what i meant is to have different representations 
for the same url. http://norman.walsh.name/2003/07/02/conneg

this particular aspect is not detracting from your concept though, just 
some follow up ideas.

-gregor

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by Rolf Kulemann <ma...@rolf-kulemann.com>.
On Wed, 2003-11-26 at 20:12, Gregor J. Rothfuss wrote:
> > A Question to the list:
> > 
> > How is content negotiation possible with Lenya/Cocoon/Tomcat?
> > Normally you can do it with Apache. But if I use tomcat with apache the
> > requests are delegated to the servlet engines context, arent't they.
> > 
> > I'm not that familiar with tomcat/cocoons capabilities for content neg.
> 
> another side effect just occured to me. if you deliver through static 
> html with apache, you'd want to make sure that you have the same 
> capabilities in your delivery engine as in the authoring engine when it 
> comes to http headers etc. content negotiation is out of band, if that 
> makes sense, and replicating those are currently outside the scope of 
> lenya. maybe they should be, at some point?
> 
> -gregor

Mhh, maybe I got you wrong but, if you use urls like 

authoring/contact
authoring/products

It should be easy to configure apache for content neg. The website
developer has to decide for an url scheme, so if he uses .html or not in
sitettree objects for example. If he is not using file extensions he has
to configure apache.
Another solution could be to use a slash at the end, so   

authoring/contact/
authoring/products/

apache then looks for a file like

authoring/contact/index.html
authoring/products/index.html

which should be found after an export.

But I think using content neg in apache is the best solution when
serving static pages.

What did you mean with "...when it comes to http headers..."?


-- 
Rolf Kulemann

Man, n.:
	An animal so lost in rapturous contemplation of what he thinks
e is as to overlook what he indubitably ought to be.  His hief
occupation is extermination of other animals and his own pecies, which,
however, multiplies with such insistent apidity as to infest the whole
habitable earth and Canada.
		-- Ambrose Bierce, "The Devil's Dictionary"


PGP/GPG public key:
	 http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6B4EA7EA


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


Re: Information hiding for URIs

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
> A Question to the list:
> 
> How is content negotiation possible with Lenya/Cocoon/Tomcat?
> Normally you can do it with Apache. But if I use tomcat with apache the
> requests are delegated to the servlet engines context, arent't they.
> 
> I'm not that familiar with tomcat/cocoons capabilities for content neg.

another side effect just occured to me. if you deliver through static 
html with apache, you'd want to make sure that you have the same 
capabilities in your delivery engine as in the authoring engine when it 
comes to http headers etc. content negotiation is out of band, if that 
makes sense, and replicating those are currently outside the scope of 
lenya. maybe they should be, at some point?

-gregor

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org