Search found 7 matches

by tanquang
Thu Jun 17, 2021 8:17 pm
Forum: General XML Questions
Topic: How to insert element id ascending and sort by element value?
Replies: 4
Views: 1462

Re: How to insert element id ascending and sort by element value?

Hi, For generic XSLT related questions maybe you can try in the future to ask on stack overflow, to get more people of the XSLT community on board. An XSLT stylesheet would probably look like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www....
by tanquang
Thu Jun 17, 2021 7:44 pm
Forum: General XML Questions
Topic: How to insert element id ascending and sort by element value?
Replies: 4
Views: 1462

Re: How to insert element id ascending and sort by element value?

Hi, For generic XSLT related questions maybe you can try in the future to ask on stack overflow, to get more people of the XSLT community on board. An XSLT stylesheet would probably look like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www....
by tanquang
Thu Jun 17, 2021 7:35 pm
Forum: General XML Questions
Topic: How to insert element id ascending and sort by element value?
Replies: 4
Views: 1462

Re: How to insert element id ascending and sort by element value?

Hi, For generic XSLT related questions maybe you can try in the future to ask on stack overflow, to get more people of the XSLT community on board. An XSLT stylesheet would probably look like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www....
by tanquang
Wed Jun 16, 2021 10:44 pm
Forum: General XML Questions
Topic: How to insert element id ascending and sort by element value?
Replies: 4
Views: 1462

How to insert element id ascending and sort by element value?

Here is the content of my XML file: <include> <data> <name>Cat food (Pet 65)</name> <goodsSum>2</goodsSum> ... </data> <data> <name>Dog food (Pet 65)</name> <goodsSum>3</goodsSum> ... </data> <data> <name>Meat (Normal 70)</name> <goodsSum>4</goodsSum> ... </data> <data> <name>Fish food (Pet 65)</nam...
by tanquang
Tue May 04, 2021 9:29 am
Forum: General XML Questions
Topic: Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?
Replies: 4
Views: 2617

Re: Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?

Hello, I think you can use the "Preserve text as it is" option from Options->Preferences->Editor / Format / XML option page. If is selected, the Format and Indent operation preserves text content as it is, without removing or adding any white space. Another solution is to add the elements...
by tanquang
Thu Apr 29, 2021 6:42 pm
Forum: General XML Questions
Topic: Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?
Replies: 4
Views: 2617

Re: Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?

Hello, Thanks for your feedback. You can control the formatting opinions from "Options->Preferences-> Editor / Format" options page. The number of characters after which the Format and Indent (pretty-print) action performs hard line-wrapping, is by default 100. You can set a different val...
by tanquang
Wed Apr 28, 2021 10:54 pm
Forum: General XML Questions
Topic: Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?
Replies: 4
Views: 2617

Disable adding newline at the end of file and auto line break when long line? Keep the original type of spacing?

I have a problem with the Format and Indent Files (Pretty-Print) tool. Specifically: After using the tool, my XML file automatically generated a blank line at the end of the file. The long lines are all truncated to multiple lines (quite difficult to read). All spacing (tabs, spacing) are replaced w...