cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject [c2] stylesheet parameters redux, call for vote
Date Tue, 17 Apr 2001 23:23:08 GMT
so i think these are the options available to us for accessing
request-time parameters in our stylesheets:

1. have the trax transformer pass in all possible parameters individually.
a request parameter named 'foo' would be accessible via:

<xsl:param name="request--foo"/>
<xsl:value-of select="$request--foo"/>

2. have the trax transformer pass in all possible parameters via DOM
objects:

<xsl:param name="request"/>
<xsl:value-of select="$request/foo"/>

3. have a parameter transformer add the parameters and their values to an
element underneath the root element:

<xsl:value-of select="/meta/request/foo"/>

(with namespaces, naturally)

i reckon the sitemap might look like:

<map:transform type="parameter">
  <parameter name="request-parameters" value="foo,bar"/>
  <parameter name="cookies" value="*"/>
</map:transform>

4. do nothing, force authors to add request-time parameters to their xml
stream using xsp or their own custom sitemap component.

i reckon, after careful consideration, that (3) is probably the best
solution, but (2) still has a lot to recommend it. i think they have the
practically the same effect on the cache engine since both can report with
precision which request-time parameters are relevant to their
cacheability. what do y'all think?

- donald


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


Mime
View raw message