You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Webmaster <we...@infornet.es> on 2001/10/05 17:29:01 UTC

xsp-request:get-uri do not show root when called from aggregation

Hi,

I have a problem with Cocoon2.0rc1: <xsp-request:get-uri/> do not show
root (/) when called from a <map:aggregate>

That is the xsp:
................................................................
<xsp:page .. ..>
	<test>
	
<get-requested-url><xsp-request:get-requested-url/></get-requested-url>
		<get-uri><xsp-request:get-uri/></get-uri>
	</test>
</xsp:page>


with that in sitemap:
................................................................
<map:match pattern="testuri.xml">
	<map:generate type="serverpages" src="testuri.xsp"/>
	<map:serialize type="xml"/>
</map:match>


you can call (in my case: http://localhost:8102/testuri.xml) and get
that expected:
................................................................
<test xmlns:xsp=".. ..">
 
<get-requested-url>http://127.0.0.1:8102/testuri.xml</get-requested-url> 
  <get-uri>/testuri.xml</get-uri> 
</test>


BUT if you put in sitemap:
................................................................
<map:match pattern="testuri-as-part.xml">
  <map:aggregate element="content-list">
    <map:part src="cocoon:/testuri.xml" element="content"/>
  </map:aggregate>
  <map:serialize type="xml"/>
</map:match>


you call http://localhost:8102/testuri-as-part.xml) and get:
................................................................
<content-list>
  <content>
    <test xmlns:xsp=".. ..">
     
<get-requested-url>http://127.0.0.1:8102testuri.xml</get-requested-url>
      <get-uri>testuri.xml</get-uri>
    </test>
  </content>
</content-list>


If anybody know: WHY I am lost the root (/) between
"http://127.0.0.1:8102" and "testuri.xml"???

Thanks in advance.

Antonio Sotomayor
webmaster@infornet.es


PD: 
1) Some data: Test done in W2000Server (US) + ServicePack2 + JRun3.1 +
Cocoon2.0rc1
2) The test gives the same result if I aggregate several parts instead
only one.


-------------------------------------------------
InforNet

Cristobal Bordiu, 35. 28003 Madrid.
Teléfono: 34 1 533 30 00*
Fax: 34 1 533 40 36
e-mail: webmaster@infornet.es

http://www.infornet.es
http://www.megastorevirtual.com
http://www.enlaweb.com
-------------------------------------------------

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

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