OK, I just typed a bunch of crap after reading your E-mail and then
realized I misread! So...

Regarding your two example comparisons, it doesn't have to be
so...wordy.

Here is what I used to use with AxKit (I now do it in Resin using XTP):

http://storm.lackluster.net/~scott/resume.xps.txt

And it can get even smaller if you use XSLT...

But I prefer XTP myself ;)

Scott

--
[EMAIL PROTECTED]                            Chuck Norris action jeans
                                     are what I wear when I hit the scene.

On Tue, 25 Jun 2002, Philip Mak wrote:

> Hello,
>
> I'm an Apache::ASP (mod_perl) programmer. I'm checking out AxKit
> because it looks interesting.
>
> One question I have is, how do you deal with all this typing? I was
> reading the examples at http://axkit.org/docs/guide.dkb?section=4 and
> it seems that when everything is an XML tag, there is a lot of typing
> to be done.
>
> 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>
>
> That's 23 lines of code. If I were to do this in Apache::ASP with the
> 'page' tag defined as an XMLSub, it would be only 11 lines, which is
> about 50%!
>
> <page><%
>     my $name = $Request->Params('name');
>     if ($name) {
>         %>Your name is: <%=$name%><%
>     } else {
>         %><form>
>             Enter your name: <input type="text" name="name" />
>           <input type="submit" />
>         </form><%
>     }
> %></page>
>
> I find the latter example to be much more readable and faster to code.
>
> Am I missing the point here?
>
> I read that one of the significant advantages of AxKit is total
> separation of web design and code. However, on the websites that I
> work on, I do both the web design and the code.
>
> Thoughts?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to