-
Notifications
You must be signed in to change notification settings - Fork 2
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
Change order of option - First removed then added elements #8
Comments
Hello, the configuration files I provided are only examples to make easier the customization by the user to meet its specific file structure, use cases and expectations. You may edit config.xml very easily to meet your need by re-ordering and updating the concerned lines. |
Before to write this I tried myself using current filter-added-removed.xsl xsl:variable name="filter">[@diff:status='added']|[@diff:status='removed']|[count(descendant::[@diff:status='added' or @diff:status='removed']) > 0] in xsl:variable name="filter">[@diff:status='removed']|[@diff:status='added']|[count(descendant::[@diff:status='removed' or @diff:status='added']) > 0] invertinbg position of added removed but seems that didn't works. Could you please help me to identify teh right value to use to get my scope? Thanks. |
Hello, as mentioned in my reply above, the file you need to edit to change the menu order is config.xml. |
Please help to identify teh right value for XLS. I change the order xsl:variable name="filter">[@diff:status='removed']|[@diff:status='added']|[count(descendant::[@diff:status='removed' or @diff:status='added']) > 0] replacing added and removed order but it seems that didn't works. Thanks. |
I have missed that you wanted to change also the content of the script and not only the menu order. Please read my other comment in #9, you just have to change the order of the outputted html tables in the '/' template. |
As I explained I change the order original <xsl:variable name="filter">[@diff:status='added']|[@diff:status='removed']|[count(descendant::[@diff:status='added' or @diff:status='removed']) > 0]</xsl:variable> new version xsl:variable name="filter">[@diff:status='removed']|[@diff:status='added']|[count(descendant::[@diff:status='removed' or @diff:status='added']) > 0] but it seems that didn't works. |
Ok, sorry, didn't understand before reading #14 that you wanted to sort in the tree view. Not possible now. A little explanation about what you tried: In XPath syntax, <node icon="the predefined icon to be displayed" children="the XPath expression to select the children nodes">the text to be displayed on the line of the element in the tree</node> |
Please don't consider the sort option. What's the right syntax to show as color icon befroe the elements added (red icon) and the the green icon (removed items) Currently is viceversa. baecause for me is mroe logical if you compare two file (first is amster) teh second ex is translation. to see first added strings and after removed strings. Thanks. |
@rpeyron
Hi.
Could you please change the menu order
Display added
Dispaly removed
Display added and removed
in
Dispaly removed
Display added
Disaply removed and added
In this way show first the difference in first file then the difference in second file.
And the option are in order "show the difference in first fil"e and next option is "show differences in second file".
About to display first removed and after added could you probably change the content of the script.
Now seem viceversa
Plerase consider i a menu decription likle
Display available only in first file
Display available only in second file
Dispaly available only in first and second file
could be describe easily the functions
Thanks.
The text was updated successfully, but these errors were encountered: