Changes between Initial Version and Version 1 of Ticket #157
- Timestamp:
- Nov 22, 2007, 8:55:04 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #157 – Description
initial v1 1 1 File1.html which is some shared fragment of an html file: 2 2 3 {{{ 4 #!genshi 3 5 <html xmlns=".." xmlns:py=".." xmlns:xi=".." py:strip=""> 4 6 <div class="mytarget"> … … 6 8 </div> 7 9 </html> 10 }}} 8 11 9 12 File2.html which includes the shared fragment and creates a full html document: 10 13 14 {{{ 15 #!genshi 11 16 <html xmlns=".." xmlns:py=".." xmlns:xi=".."> 12 17 <body> … … 15 20 </body> 16 21 </html> 22 }}} 17 23 18 24 File3.html which creates a second full html document by modifying File2.html through match expressions: 19 25 26 {{{ 27 #!genshi 20 28 <html xmlns=".." xmlns:py=".." xmlns:xi=".." py:strip=""> 21 29 <div py:match="div[@class='target'>" py:attrs="select('@*')"> … … 25 33 <xi:include href="File2.html" /> 26 34 </html> 27 35 }}} 28 36 29 37 File3.html will produce: 30 38 39 {{{ 40 #!xml 31 41 <html> 32 42 <body> … … 39 49 </body> 40 50 </html> 51 }}} 41 52 42 53 This occurs because the include filter runs all other filters (exec, match, include) on the included document. That means that match runs twice on File1.html, once for include from File2.html and once for include from File3.html.
