[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Cocoon and "accept" request WAS "RE: Call for example of serve


accept example

> Didier replies:
> Thanks for the pointer John. After having read the doc I noticed that it
(apache)
> handles static documents (and quite well I should say), but doesn't handle
> dynamically transformed XML documents on the basis of the
> "accept" header. I
> expected to find that in cocoon but couldn't find that feature in this
> server extension. It seems that cocoon handles only the
> "user-agent" pattern
> match but not the "accept" request.

Hi Didier.

From my reading of the doco, the component in Cocoon 2 to do what
you say is a selector. Out of the box, the distribution provides a dedicated
selector for the user-agent and host HTTP headers but also has a generic
"HeaderSelector" that can be used to check any request header as part of a
selector.

http://xml.apache.org/cocoon/userdocs/selectors/selectors.html

Alternatively, if designing a logicsheet, you can access all the request
information via the built-in "request" environmental logicsheet.

<aside>
I have found the ibm developerworks tutorials on Cocoon excellent and a
great
introduction if, like me, you are starting from zero. Thanks Leigh!
</aside>

If there are any Cocoon 2 gurus out there, feel free to correct my
understanding.
Its only a "paper" based one at the moment.

Regards
Michael


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.