Why doesn't item get *same* element type? i.e. why item.tag = body instead of item.tag=div?
Chris On Sun, Nov 26, 2006 at 06:05:35PM -0500, Mark Ramm wrote: > > > > <div id="content" py:replace="[item.text]+item[:]"> > > <p>Body text goes here.</p> > > </div> > > > > What exactly is in item.text and item[:]?? I assume item corresponds to > > <div id="content"> element in slave? > > item is the name of the matching element in the "slave" template. So > in this case it is the body tag in the "slave" template. Item.text > gets the first text node in the body element, and item[:] gets all the > remaining elements nodes in the body element. All of this replaces > the content div in the master template. > > But the contents of the master template body are "wrapped" around the > contents of the "slave's" body template. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > kid-template-discuss mailing list > kid-template-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kid-template-discuss > -- _______________________________________ Christian Seberino, Ph.D. 5707 SANTA FE ST SAN DIEGO, CA 92109-1622 Phone: (619) 573-4233 Email: [EMAIL PROTECTED] _______________________________________ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss