On Tuesday 25 June 2002 06:37, Robin Berjon wrote:
Yep! Robin is exactly right. We've built up a syntax of probably roughly 150
to 200 tags in various taglibs to deal with our private equity trading
application and related stuff.
This is a typical XSP page from our site (sans namespace stuff):
<page>
<labels name="marketplace"/>
<title id=""/>
<navigation id="201" />
<user:user />
<community:community/>
<content>
<auction:items>
<auction:parameters><status>172</status></auction:parameters>
</auction:items>
<community:user_threadgroup>
<if-param:count>
<community:count><param:count/></community:count>
<community:start><param:start/></community:start>
</if-param:count>
</community:user_threadgroup>
</content>
<copyright/>
</page>
> On Tuesday 25 June 2002 09:31, Philip Mak wrote:
> > For example, take the following simple example of a webpage that has a
> > form which says "Enter your name", and submits to itself upon which it
> > redisplays the name entered:
> >
> > <xsp:page
> > xmlns:xsp="http://apache.org/xsp/core/v1"
> > xmlns:param="http://axkit.org/NS/xsp/param/v1"
> > language="Perl"
> >
> > <page>
> > <xsp:logic>
> > if (<param:name/>) {
> > <xsp:content>
> > Your name is: <param:name/>
> > </xsp:content>
> > }
> > else {
> > <xsp:content>
> > <form>
> > Enter your name: <input type="text" name="name" />
> > <input type="submit"/>
> > </form>
> > </xsp:content>
> > }
> > </xsp:logic>
> > </page>
> > </xsp:page>
> >
> > Am I missing the point here?
>
> Adding to what Matt said, there's also the fact that if you're looking at
> having a well-organized website with moderately complex functionality,
> you're probably going to create a taglib instead of coding straight inside
> the page. That taglib would be written using one of the helper modules,
> making it easy.
>
> So if I were doing that site, the above would look like:
>
> <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1"
> xmlns:sillytest="http://robin.berjon.com/is/a/dahut/"
> language="Perl">
> <sillytest:name-or-form />
> </xsp:page>
>
> And that would be it. The SillyTest taglib would handle insertion of either
> <sillytest:prompt-for-name/> or of <sillytest:show-name name='Donald Ahut'
> /> which would then get transformed by the XSLT stylesheet.
>
> Of course on such a limited example there's little advantage. But on
> anything larger, even garden variety websites, then it's a win.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]