Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to sort elements with customizable XSLT filter #14

Open
bovirus opened this issue Nov 26, 2022 · 1 comment
Open

Add ability to sort elements with customizable XSLT filter #14

bovirus opened this issue Nov 26, 2022 · 1 comment
Assignees

Comments

@bovirus
Copy link
Contributor

bovirus commented Nov 26, 2022

@rpeyron

I tried to use XSLT filter "added.removed-or-equal" to compare two xml files with "string ID0" style.

My expactation is to see in this order

removed strings
added strings
equal strings

Currently using this filter I see

equal string with mixed qremoved string (green icon)
added strings (red icon).

Thanks.

@rpeyron
Copy link
Owner

rpeyron commented Nov 26, 2022

Hello, it is not currently possible to sort elements with customized XSLT display. I keep the issue as opened, but it may not resolve soon.

Meanwhile, you can use some workarounds like:

  • use an external XML file sorter (or external XSLT transform on the whole file) to sort the file according to the @diff;status attribute
  • use successively XSLT displays that display only removed, then the one for added and equal (to be created based on one of the previous) in the order you want
  • process only added strings that are grouped at the end of the file, and then reverse the before/after files to get "removed" strings as added in the end of files

@rpeyron rpeyron changed the title XSLT filter added-remove-or-equal behaviour Add ability to sort elements with customizable XSLT filter Nov 26, 2022
@rpeyron rpeyron self-assigned this Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants