cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e nio <enio...@yahoo.com>
Subject Clarification please on RequestGenerator
Date Thu, 06 Feb 2003 22:24:34 GMT

  Im trying to understand how to acquire and what is passed on
to cocoon by the RequestGenerator.

Scenario:  http://localhost:8080/cocoon/mount/mypage?logic=7
 sitemap has:  <map:generate type="request"/>

assuming here the default
org.apache.cocoon.generation.RequestGenerator.  What is
generated here? I have a little idea of what is generated but
unsure how to parse it on the stylesheet. I have seen the
stylesheet like:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:req="http://xml.apache.org/cocoon/requestgenerator/2.0">

  <xsl:template match="/">
    <page>
      <incoming-value>
        <xsl:value-of
select="/req:request/req:requestParameters/req:parameter/req:value"/>
...snip...

WHY the need to qualify select with req: on the xpath?  why it
does not work with just
/request/requestParameters/parameter/value"  ? I looked at the
intermediate xml generated and the element tags does not have
req: in front.

Also there is an element on the intermediate xml
<configurationParameters>,  where is this coming from? It has
blank body right now but wanted to know where it came from and
what would normally be put on it or what can be inserted on it?

Regards,
e nio



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message