[Mod_transform] XSL Parameters

Laurence Rowe l at lrowe.co.uk
Tue Jun 17 19:00:01 EDT 2008


Hi Edward,

I'd be very interested in seeing the more portable code to see if it
will do what I need (essentially be compatible with non apache
implementations that use xsltproc parameters). Would you be able to
check it in to a branch in svn?

My initial impressions of mod_transform are very positive, it seems
quick and the code is understandable.

Regards,

Laurence

2008/6/17 Edward Rudd <urkle at outoforder.cc>:
> what is currently implemented as part of issue #6 is active and been running
> on outoforder.cc for over a year.
> It is used on the documentation pages for mod_ftpd and mod_log_sql (2.0).
> where the a query arg is sent to the page and available as a function in
> mod_transform.
>
> The way it works is I pass a ?chapter=/3/4/ to the page (generated in the
> index) which the code in the xslt selects the 3rd top level section and the
> 4th subsection.  How this is fetched in the XSLT is via a call to
> apache:get('variable'). Example
>
> <xsl:variable name="chapter" select="apache:get('chapter')"/>
>
> the function availability can be tested with
> <xsl:choose>
>  <xsl:when test="function-available('apache:get')">
>  </xsl:when>
> <xsl:otherwise>
> </xsl:otherwise>
> </xsl:choose>
>
> Now another user has submitted a good amount of code that provides a cleaner
> implementation of doing this that is simpler and I believe more
> uniform/portable for XSLT files.  I just haven't had time to review the code
> and push out a new release.
>
> If the current code that is running on outoforder.cc will work I can create
> a snapshot based on that for you.  Otherwise you can experiment with the SVN
> trunk of mod_transform.
>
> On Jun 17, 2008, at 1:36 PM, Laurence Rowe wrote:
>
>> Hi,
>>
>> I'm looking at using mod_transform with xslt generated by deliverance
>> (http://www.openplans.org/projects/deliverance). I'd like too be able
>> to pass information from response headers generated by the backend web
>> app into the stylesheet (like with the php xsl module or xsltproc). Is
>> there any way to do this? I'm confused as to what is available after
>> reading http://issues.outoforder.cc/view.php?id=6
>>
>> Laurence
>> _______________________________________________
>> Download the latest version at
>> http://www.outoforder.cc/projects/apache/mod_transform/
>>
>> To unsubscribe send an e-mail to
>> mod_transform-unsubscribe at lists.outoforder.cc
>
>


More information about the Mod_transform mailing list