[Issues] [mod_transform 0000006]: Query Args as variables in the XSLT.

issues at outoforder.cc issues at outoforder.cc
Thu Jun 15 19:32:00 EDT 2006


A NOTE has been added to this issue. 
====================================================================== 
http://issues.outoforder.cc/view.php?id=6 
====================================================================== 
Reported By:                urkle
Assigned To:                urkle
====================================================================== 
Project:                    mod_transform
Issue ID:                   6
Category:                   Feature Request
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Apache Version:             unspecified 
====================================================================== 
Date Submitted:             05-30-2004 00:33 EST
Last Modified:              06-15-2006 18:31 EST
====================================================================== 
Summary:                    Query Args as variables in the XSLT.
Description: 
Parsing and passing in the query args as a $get.variable to the XSLT space.
====================================================================== 

---------------------------------------------------------------------- 
 chip - 06-02-04 22:22  
---------------------------------------------------------------------- 
Do we want to provide access to Post or Cookies or other properties of the
HTTP Request?

Maybe the easy way would be to expose the sub process env... 

---------------------------------------------------------------------- 
 chip - 03-20-05 00:05  
---------------------------------------------------------------------- 
I am less sure this is a good idea.  I am thinking that keeping
mod_transform as simple as possible is the best decsion, long term. 

---------------------------------------------------------------------- 
 urkle - 03-21-05 19:06  
---------------------------------------------------------------------- 
I am thinking only GET for now. and it can be enabled/disabled via the
perdir options, or via a note.

Largely I see this useful in writing/finishing my simplified docbook xslt.
as I can have the XSLT chapterize and TOC the document and provide links to
itself to load different chapters and sections. 

---------------------------------------------------------------------- 
 urkle - 10-21-05 20:36  
---------------------------------------------------------------------- 
implemented XPath NS function  http://outoforder.cc/apache:get(var)

ie.

<xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:apache="http://outoforder.cc/apache">
<xsl:template match="*">
  <xsl:value-of select="apache:get('myqueryarg')"/>
</xsl:template>
</xsl:stylesheet>

and call the file with ?myqueryarg=value
http://www.example.com/index.xml?myqueryarg=Hello+out+there

 

---------------------------------------------------------------------- 
 trapni - 01-21-06 18:41  
---------------------------------------------------------------------- 
I am really in need of POST arguments as well, in fact, I can't expect the
user to be happy when he types his username/password into the form and
will (on submit) them see in the URL bar afterthen, you understand?

that's why I'm using POST for at least passing stuff that should be a
little more securely (passwords, credentials)..

I don't know how to retrieve POST arguments within a filter, so, I'd be
happy when someone else could step in here...

regards,
Christian Parpart. 

---------------------------------------------------------------------- 
 trapni - 01-29-06 01:54  
---------------------------------------------------------------------- 
mod_transform-http.c is one mod_transform plugins I wrote. this one lets
actually access you HTTP GET/POST data using the above syntax
(get("key")), but I changed the namespace, and it's not mod_transform
builtin, in fact, you said you wanted to keep mod_transform more
lightweight (or so), so, everything extendable shall be implemented as
plugins then.

this plugin of course is based on the plugin-api patch I submitted. have a
look there.

although, it's using libapreq2, so you need this as a depend.

I plan in adding more http request_rec/apreq2 accessors, like cookies etc,
but this comes when the enough time and space is available ;)

regards,
Christian Parpart. 

---------------------------------------------------------------------- 
 trapni - 02-03-06 14:19  
---------------------------------------------------------------------- 
mod_transform-http r2: adapted to plugin api (r4). 

---------------------------------------------------------------------- 
 svanzoest - 06-15-06 18:06  
---------------------------------------------------------------------- 
Any reason, we can not implement this via <xsl:param/> top level element?
This seems to be the most natural approach and this is more portable with
other XSLT implementations as well. 

---------------------------------------------------------------------- 
 trapni - 06-15-06 18:31  
---------------------------------------------------------------------- 
of course you can... but more portable? dont think so why XSLT elements
shall be more portable than XPath extension functions.

Really, I submittet the plugin-api patch as well as this extension plugin
months(!) ago, and nothing happened.

While being nearly in doing a fork I currently chose a completely
different way to develop dynamic web applications, via mono's C# & asp.net
2.0. Thanks mod_transform. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-30-04 00:33  urkle          New Issue                                    
05-30-04 00:33  urkle          Apache Version            => unspecified     
06-02-04 22:22  chip           Note Added: 0000002                          
03-20-05 00:05  chip           Status                   new => assigned     
03-20-05 00:05  chip           Assigned To               => chip            
03-20-05 00:05  chip           Note Added: 0000034                          
03-21-05 19:06  urkle          Note Added: 0000035                          
10-21-05 20:33  urkle          Assigned To              chip => urkle       
10-21-05 20:36  urkle          Note Added: 0000053                          
10-21-05 20:36  urkle          Note Edited: 0000053                         
01-21-06 18:41  trapni         Note Added: 0000056                          
01-21-06 18:41  trapni         Issue Monitored: trapni                      
01-29-06 01:51  trapni         File Added: mod_transform-http.c                 
  
01-29-06 01:54  trapni         Note Added: 0000058                          
02-03-06 14:19  trapni         Note Added: 0000060                          
02-03-06 14:19  trapni         File Added: mod_transform-http-r2.c              
     
06-15-06 18:06  svanzoest      Note Added: 0000077                          
06-15-06 18:31  trapni         Note Added: 0000078                          
======================================================================




More information about the Issues mailing list