From: "Jeremy Quinn" <[EMAIL PROTECTED]> > Hi All, > > I am interested in seeing whether Input Modules in the Sitemap can use > Sitemap params as their own params. > > I am looking at all the different ways to solve a problem .... before > we choose a solution > > Say I have a set of urls: > > /archive/people/ABC > <snip/> > /archive/people/WXYZ > > Which result in modifications to an SQL Query: > > WHERE surname LIKE 'A%' OR 'B%' OR 'C%' > <snip/> > WHERE surname LIKE 'W%' OR 'X%' OR 'Y%' OR 'Z%' > > Say I had an XML file, used by the XMLFileModule (mapped to > 'alphabet'), that mapped each (allowed) letter group to the query > modification it needed, then this could be passed by the sitemap to the > SQLTransformer via a map:parameter into a <substitute-value > sql:name="alphabet"/>. > > But is this possible? > > <map:match pattern="archive/(.*)/([A-Z]*)$" type="regexp"> > <map:generate src="{our:content}/archive/{1}.xml"/> > <snip/> > <map:transform type="sql"> > <map:parameter name="alphabet" value="{alphabet:{2}}"/> > </map:transform> ^^^ ???????? > <snip/> > </map:match> > > Is this possible to do?
Unfortunately no. I've raised this issue on dev list, but no one had a solution to it (I hope we'd invent something for that). -- Konstantin > > This is just one solution I am looking at ..... but thanks for any help > anyway .... > > regards Jeremy > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]