On Wed, Apr 28, 2004 at 01:52:39PM -0500, Tony Collen wrote:
> Leszek Gawron wrote:
>
> >What is the point of this ?
> >still I have to do :
> ><map:match pattern="data/*">
> > <map:select type="custom">
> > <map:when test="goods">
> > <map:generate type="goods"/>
> > </map:when>
> > <map:when test="contractors">
> > <map:generate type="contractors"/>
> > </map:when>
> > <!-- 40 more -->
> > <map:when test="stock">
> > <map:generate type="stock"/>
> > </map:when>
> > </map:select>
> > <map:serialize/>
> ></map:match>
> >
> >even now without a custom selector I can do:
> >
> ><map:match pattern="data/*">
> > <map:match patter="data/goods">
> > <map:generate type="goods"/>
> > </map:match>
> > <map:match patter="data/contractors">
> > <map:generate type="contractors"/>
> > </map:match>
> > <!-- 40 more -->
> > <map:match patter="data/stock">
> > <map:generate type="stock"/>
> > </map:match>
> > <map:serialize/>
> ></map:match>
> >but this is huge and grows every time I add some new functionality. With
> >xsps I haven't touched the sitemap for months.
> >
>
> Ahh, true... you also have to maintain 40 different kinds of Generators, so
> the point is rather moot :)
>
> I do see your point though... and I'm not sure I have much of a solution
> beyond what Peter H. said in his reply.
My point is : why isn't the generator type attribute processed with value
substitution? I could do map:generate type="{1}" and add generator definitions
at the top of the sitemap.
I can do <map:call function="{1}"/>. What's the difference?
--
__
| / \ | Leszek Gawron // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(501)720812 / // \\ \
\\ // recursive: adj; see recursive | \__/ |