Revision 32638
Added by Andrea Mannocci over 9 years ago
ComposeEprJobNode.java | ||
---|---|---|
57 | 57 |
} |
58 | 58 |
} |
59 | 59 |
|
60 |
private void compose(Document doc, Document match) {
|
|
60 |
private void compose(Document main, Document alternate) {
|
|
61 | 61 |
// Prepare replacing fragment (source) |
62 |
Element replacingElement = (Element) match.selectSingleNode(getXpathToReplacingFragment());
|
|
62 |
Element replacingElement = (Element) alternate.selectSingleNode(getXpathToReplacingFragment());
|
|
63 | 63 |
// Prepare replaced fragment (destination) |
64 |
Element replacedElement = (Element) doc.selectSingleNode(getXpathToReplacedFragment());
|
|
64 |
Element replacedElement = (Element) main.selectSingleNode(getXpathToReplacedFragment());
|
|
65 | 65 |
|
66 | 66 |
if (replacingElement != null && replacedElement != null) { |
67 | 67 |
replacingElement.detach(); |
Also available in: Unified diff
variables renamed