On Sun, 2007-02-11 at 15:36 +0100, Christoph Zwerschke wrote:
> > Awesome, that worked well. Thanks! I was thinking of something along
> > these lines, but I assumed in the child replace that "item" would refer
> > to the <meta> element, not the <head> as it appears to do so above. How
> > exactly does this work?
> 
> See http://kid-templating.org/language.html#match-templates-py-match

Ahh, that makes sense. Thanks!

> > Also, out of curiosity, has there been any discussion about providing a
> > few optional element equivalents for some of the kid attributes so there
> > aren't random elements being added just to allow an attribute to be
> > specified, as has been done above?
> 
> This may spare a few keystrokes, but it is also confusing.

I'd find it much less confusing. I guess it's a matter of preference.

> Also, your 
> template will not be valid XHTML any more, which is one of the main 
> advantages of a tag *attribute* language such as Kid.

Not at all. If you're using a DTD/schema/editor/validator strict enough
that it won't allow elements outside the XHTML name space to appear in
random places in you documents, it won't allow attributes outside the
default name space either. Conversely, if it is lax enough to allow the
kid attributes, it will likely allow elements in the Kid name space as
well.

Also, If you're using a Kid layout, there's no chance the document using
the layout is going to be valid XHTML anyway.

/Mike

-- 
Michael Gratton <[EMAIL PROTECTED]>     
Quuxo Software <http://web.quuxo.com/>

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
kid-template-discuss mailing list
kid-template-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to