Thanks, I'll have to look at this. There aren't many links, so my
variable <py:if="..."> will probably work for now. However, I do have
a couple of questions, if you don't mind answering them, see below...
On 10/25/05, David Bernard <[EMAIL PROTECTED]> wrote:
>
> in your master.kid :
> ...
> <head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'">
> ...
I recall seeing the "item.tag=='{http://www.w3.org/1999/xhtml}head'".
However I'm confused as to what that actually does. I understand this
simple example ->
<element py:match="item.tag == 'mytag'">
The {http...} confuses me in that item.tag expression. What exactly
does that do?
> <div py:replace="item[:]"/>
I *think* this replaces all of the elements in <head></head>.
> </head>
> <body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'">
> ...
> <!-- section imported from xxx.kid -->
> <div id="content">
> <div py:replace="item[:]"/>
> </div>
> ...
> </body>
> ...
>
> in your variable content template :
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:py="http://purl.org/kid/ns#"
> py:extends="'master.kid'">
>
> <head>
> <title>Too</title>
> </head>
>
> <body>
> ... the content to import into master.kid div...
> </body>
> </html>
>
> Like this your master.kid could enclose the content of <head> and
> <body> from template extending "master.kid"
>
> is it usefull ?
>
Thanks for the help, it may be! But I'm too dense to realize it right now ;).
jw