- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6bbf751
committed
Fix namespace handling in xpath function
Previously, the xml value resulting from an xpath query would not havenamespace declarations if the namespace declarations were attached toan ancestor element in the input xml value. That means the output valuewas not correct XML. Fix that by running the result value throughxmlCopyNode(), which produces the correct namespace declarations.Author: Ali Akbar <the.apaan@gmail.com>1 parent2049a7d commit6bbf751
4 files changed
+55
-8
lines changedLines changed: 26 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
144 |
| - | |
| 144 | + | |
145 | 145 |
| |
146 |
| - | |
| 146 | + | |
| 147 | + | |
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
| |||
3595 | 3596 |
| |
3596 | 3597 |
| |
3597 | 3598 |
| |
3598 |
| - | |
| 3599 | + | |
3599 | 3600 |
| |
3600 | 3601 |
| |
3601 | 3602 |
| |
3602 | 3603 |
| |
3603 | 3604 |
| |
3604 | 3605 |
| |
| 3606 | + | |
3605 | 3607 |
| |
3606 | 3608 |
| |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
3607 | 3621 |
| |
3608 | 3622 |
| |
3609 |
| - | |
| 3623 | + | |
3610 | 3624 |
| |
3611 | 3625 |
| |
3612 | 3626 |
| |
3613 | 3627 |
| |
| 3628 | + | |
3614 | 3629 |
| |
3615 | 3630 |
| |
3616 | 3631 |
| |
3617 | 3632 |
| |
| 3633 | + | |
3618 | 3634 |
| |
3619 | 3635 |
| |
3620 | 3636 |
| |
| |||
3656 | 3672 |
| |
3657 | 3673 |
| |
3658 | 3674 |
| |
3659 |
| - | |
| 3675 | + | |
| 3676 | + | |
3660 | 3677 |
| |
3661 | 3678 |
| |
3662 | 3679 |
| |
| |||
3678 | 3695 |
| |
3679 | 3696 |
| |
3680 | 3697 |
| |
3681 |
| - | |
| 3698 | + | |
| 3699 | + | |
3682 | 3700 |
| |
3683 | 3701 |
| |
3684 | 3702 |
| |
| |||
3882 | 3900 |
| |
3883 | 3901 |
| |
3884 | 3902 |
| |
3885 |
| - | |
| 3903 | + | |
3886 | 3904 |
| |
3887 |
| - | |
| 3905 | + | |
3888 | 3906 |
| |
3889 | 3907 |
| |
3890 | 3908 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
587 | 602 |
| |
588 | 603 |
| |
589 | 604 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
498 | 498 |
| |
499 | 499 |
| |
500 | 500 |
| |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
501 | 513 |
| |
502 | 514 |
| |
503 | 515 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
174 | 174 |
| |
175 | 175 |
| |
176 | 176 |
| |
| 177 | + | |
| 178 | + | |
177 | 179 |
| |
178 | 180 |
| |
179 | 181 |
| |
|
0 commit comments
Comments
(0)