OLD | NEW |
1 # | 1 # |
2 # ElementTree | 2 # ElementTree |
3 # $Id: ElementInclude.py 3375 2008-02-13 08:05:08Z fredrik $ | 3 # $Id: ElementInclude.py 3375 2008-02-13 08:05:08Z fredrik $ |
4 # | 4 # |
5 # limited xinclude support for element trees | 5 # limited xinclude support for element trees |
6 # | 6 # |
7 # history: | 7 # history: |
8 # 2003-08-15 fl created | 8 # 2003-08-15 fl created |
9 # 2003-11-14 fl fixed default loader | 9 # 2003-11-14 fl fixed default loader |
10 # | 10 # |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 raise FatalIncludeError( | 134 raise FatalIncludeError( |
135 "unknown parse type in xi:include tag (%r)" % parse | 135 "unknown parse type in xi:include tag (%r)" % parse |
136 ) | 136 ) |
137 elif e.tag == XINCLUDE_FALLBACK: | 137 elif e.tag == XINCLUDE_FALLBACK: |
138 raise FatalIncludeError( | 138 raise FatalIncludeError( |
139 "xi:fallback tag must be child of xi:include (%r)" % e.tag | 139 "xi:fallback tag must be child of xi:include (%r)" % e.tag |
140 ) | 140 ) |
141 else: | 141 else: |
142 include(e, loader) | 142 include(e, loader) |
143 i = i + 1 | 143 i = i + 1 |
OLD | NEW |