TurboGears created following Kid template code.  I understand
that py:match basically creates new element types but yet
I still can't figure out what py:match is doing below.
Any help greatly appreciated....


<html xmlns:py="http://purl.org/kid/ns#";
      xmlns="http://www.w3.org/1999/xhtml";
      py:extends="sitetemplate">
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'"
      py:attrs="item.items()">
        <title>SnakeCharmers</title>
        <link href="/css/main.css" type="text/css" rel="stylesheet"/>
        <meta py:replace="item[:]"/>
</head>
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'"
      py:attrs="item.items()">

*** Why is '{http://www.w3.org/1999/xhtml}' in the py:match piece?  What is its
    purpose?

*** Is py:attrs just placing original attributes of <head> and <body> back in
    those elements?

Chris

-------------------------------------------------------------------------
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

Reply via email to