Hi,
To solve the colspan issue when looping on column, I plan to implement
the attrs[1] directive from Genshi.
I'm thinking about this syntax:
attrs table:table-cell="{'table:number-columns-spanned': len(loop)}"
which will means:
- find the first parent tag named: 'table:table-cell'
- set as attribute: py:attrs="{…}"
In the same idea, we we could implement: content, replace and strip.
Questions:
- should the first part be a xpath expression like:
attrs ../../table:table-cell="…"
or the generic version:
attrs .::ancestor-or-self/table:table-cell="…¨
the xpath usage will be more expensif than a simple parent
searching.
- should we instead use a dedicated directive to update span of
table-cell like:
span=len(loop)
[1]
http://genshi.edgewall.org/wiki/Documentation/0.6.x/xml-templates.html#id6
--
Cédric Krier - B2CK SPRL
Email/Jabber:
cedric...@b2ck.com
Tel:
+32 472 54 46 59
Website:
http://www.b2ck.com/