Hi,
I'm trying to take a document containing something like the
following:
<html>
<body>
<div id="mainnav">
<ul>
<li><a
href="...">foo</a></li>
<li><a
href="...">bar</a></li>
</ul>
</div>
</body>
</html>
and generate something like:
<html>
<body>
<div class="menu">
<a href="...">foo</a> | <a
href="...">bar</a>
</div>
</body>
</html>
Currently I have the following Genshi template which is
included via
xi:include:
<html xmlns="http://www.w3.org/
1999/xhtml"
xmlns:py="http://genshi.edgew
all.org/"
py:strip="">
<py:match path="*[ id =
'mainnav']/ul/li">
${select('a')} |
</py:match>
<body py:match="body"
py:attrs="select(' *')">
${select('*[ id = "mainnav"]/ul/li')}
</body>
</html>
For some reason the first match template isn't being called.
However,
${select('*[ id = "mainnav"]') does call it. Is this the
expected
behaviour? How would I go about generating the expected
code above?
Cheers,
Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Genshi" group.
To post to this group, send email to genshi googlegroups.com
To unsubscribe from this group, send email to
genshi-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/genshi?hl=en
-~----------~----~----~----~------~----~------~--~---
|