Revision 432
Added by Aaron Marcuse-Kubitza about 13 years ago
map | ||
---|---|---|
70 | 70 |
for row in reader: |
71 | 71 |
in_, out = row[:2] |
72 | 72 |
if out != '': |
73 |
if out_is_xpaths: out = out_root+out
|
|
73 |
if out_is_xpaths: out = xpath.parse(out_root+out)
|
|
74 | 74 |
mappings.append((in_, out)) |
75 | 75 |
stream.close() |
76 | 76 |
in_is_xml = in_is_xpaths and not in_is_db |
Also available in: Unified diff
bin/map: Parse each output XPath at the beginning so XPath syntax errors are detected right away