Re: Regex gate patterns

Albert Lash <alby-8/[email protected]> Sat, 30 Apr 2005 13:04:37 -0400 (EDT)
Newsgroups gmane.comp.lib.nexista.devel
Message-ID <[email protected]>
Thanks, and about the sql query bit: that is huge. And I like it alot. On
many occasions (none of which I can think of right now, except updating
schemas) I've wanted to put queries in php scripts and call them from the
sitemap, without having the result set go into flow.

Another example:
For some of my more complex applications, there are some matching
algorithms that need to be programmed in a language, as opposed to xsl or
xml logic, and these are based off of db query result sets. So the query
gets the result, code does a bunch of stuff to it, and then updates the
database, without any output at all.

On Sat, 30 Apr 2005, Joshua wrote:

>   <map:gate name="regex:*" >
>
> On another note.... I am thinking of killing the map:sql and just turn it into
> a map:script. The only thing the sql builder does now is call query->process
> which needs to be able to be turned off or activated manually (i.e. in the
> sql definition file) for cases when you do not want the db data dumped in
> flow. If I make it so that it has to be called in the query file:
>
>     SqlHandler::setName('listing');
>     SqlHandler::setConnection('lotus');
>     SqlHandler::setPaging($start,$limit);
>     SqlHandler::setQuery($sql);
>   SqlHanlder::process(); <!-- added this
>
> Than the sql builder has nothing in it :)  kinda pointless. So the above can
> be called from a map:script tag. It's up to you if you want to keep queries
> separate still or mix them.
> What do you think?
>
>
> On Saturday 30 April 2005 9:04, Albert Lash wrote:
> > This used to work, but now does not:
> >
> >     <map:gate name="*" match="regex">
> >      <map:xsl src="../shared/xsl/placeholder.xsl" />
> >     </map:gate>
> >
> > On Sat, 30 Apr 2005, Albert Lash wrote:
> > > Hello,
> > >
> > > How about regex gate matching? The last Nx upgrade we worked something
> > > out, but now its not working. Sitemap.php is gone, but I see some stuff
> > > in init.php. How about it?
> > >
> > > Al
>