Thanks Devon & Raul, I take the advice about "burying J's array handling". I think the verb buildTag that I've added to the wiki page (<http://www.jsoftware.com/jwiki/RicSherlock/XHTML>) uses parts of both suggestions. Further critique welcome.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller > Sent: Monday, 29 October 2007 05:17 > To: Programming forum > Subject: Re: [Jprogramming] XHTML with J arrays > > On 10/28/07, Devon McCormick <[EMAIL PROTECTED]> wrote: > > ... your "name" and "class" functions are essentially the same verb > > with different arguments ... > > I would take a different approach. > > I started down that path, but this approach makes > construction of the underlying data somewhat obscure. The > script uses J's parser to manage these issues. > > Also note that the verbs name and class were defined as > makeparm@>;:'name class' > > and the bodies of those verbs can be obtained using > 'name' parm > 'class' parm > > That said, you are right -- J's rank only works on verbs, so > any use of attribute conjunctions with rank is going to > require an encapsulating verb. And, pumping data into one of > these verbs is still going to require some array building. > > Nevertheless, I believe these complexities can be kept fairly > minimal by sticking with the original design of web.ijs > > I hope this helps. > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
