On 18.01.2004 17:53, Katharina Weimer wrote:

Hello Joerg,

thanks so far for your tip.
I already figured out as well what my problem was....too simple. ;)
Just had forgotten to remove the /** from my former tests.

So what do you suggest - is it better to skip using the request params when
working with the cocoon:/ protocol ?

Yes. As I suggested add the path info to the URL instead of a request param (back to /** and using {1}). See my last message below.


..and just using them when I send requests with http:// ?

Not in combination with internal requests (cinclude and similar) as you will have much overhead.


Or doesn't it matter ?

It does ...


Joerg

Hello Katharina,

it's not a problem with cinclude and cocoon:/. The error message "No pipeline matched request: getNameForAttribute" already points out, that the request is sent back to the sitemap and this is what should happen.

Your internal request is
cocoon:/getNameForAttribute
?Path=<xsl:value-of select="$project"/>/
      <xsl:value-of select="$year"/>/
      <xsl:value-of select="$model"/>/
      <xsl:value-of select="$design"/>/
      <xsl:value-of select="$sheet"/>

This means a match for "getNameForAttribute" is searched. The problem now is that it does not exist, it only exists for "getNameForAttribute/**". Furthermore an internal request has the same request object as the external one, all request params are so still available. To avoid conflicts you should not use request params for internal requests.

My suggestion is to change your internal request to

cocoon:/getNameForAttribute/
      <xsl:value-of select="$project"/>/
      <xsl:value-of select="$year"/>/
      <xsl:value-of select="$model"/>/
      <xsl:value-of select="$design"/>/
      <xsl:value-of select="$sheet"/>

and the corresponding pipeline to

<map:match pattern="getNameForAttribute/**">
<map:generate



src="xmldb:exist://localhost:8080/exist/xmlrpc/db/#collection('plaene/{1}')//nameObj"/>


  <map:serialize type="xml"/>
</map:match>

If you don't want to switch away from the request param you have to change your match pattern to just "getNameForAttribute".

Joerg

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to