Edgewall Software

Changes between Initial Version and Version 1 of Ticket #157


Ignore:
Timestamp:
Nov 22, 2007, 8:55:04 PM (16 years ago)
Author:
cmlenz
Comment:

(prettified description formatting)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #157 – Description

    initial v1  
    11File1.html which is some shared fragment of an html file:
    22
     3{{{
     4#!genshi
    35<html xmlns=".." xmlns:py=".." xmlns:xi=".." py:strip="">
    46   <div class="mytarget">
     
    68   </div>
    79</html>
     10}}}
    811
    912File2.html which includes the shared fragment and creates a full html document:
    1013
     14{{{
     15#!genshi
    1116<html xmlns=".." xmlns:py=".." xmlns:xi="..">
    1217  <body>
     
    1520  </body>
    1621</html>
     22}}}
    1723
    1824File3.html which creates a second full html document by modifying File2.html through match expressions:
    1925
     26{{{
     27#!genshi
    2028<html xmlns=".." xmlns:py=".." xmlns:xi=".." py:strip="">
    2129   <div py:match="div[@class='target'>" py:attrs="select('@*')">
     
    2533   <xi:include href="File2.html" />
    2634</html>
    27 
     35}}}
    2836
    2937File3.html will produce:
    3038
     39{{{
     40#!xml
    3141<html>
    3242  <body>
     
    3949  </body>
    4050</html>
     51}}}
    4152
    4253This 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.