Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337528

Summary: Different formatting of name space declarations
Product: [WebTools] WTP Source Editing Reporter: Rasmus Lund <rasmus>
Component: wst.xmlAssignee: wst.xml-triaged <wst.xml-triaged>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: enhancement    
Priority: P3 CC: nsand.dev, thatnitind, zohar.pdfnitro
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
example none

Description Rasmus Lund CLA 2011-02-18 04:05:12 EST
Build Identifier: 3.2.2.v201008170019-377AB8s73533J5H335L

when doing formatting of XML code, it would be really nice, if xmlns attributes and xsi:schemaLocation COULD be treated differently than other types of attributes.

Usually I like attributes to be listed on the same line as the element opening tag itself. But with namespaces I like each name space declaration to be on it's own line.

Furthermore I like special formatting of xsi:schemaLocation, so each namespace to location pair gets a separate line.

Reproducible: Always

Steps to Reproduce:
1. n/a
2.
3.
Comment 1 Nick Sandonato CLA 2011-02-18 12:03:10 EST
Thanks for your request. There are a lot of things that could go into customizing the XML formatting experience. Any patches to move us along would be greatly appreciated.
Comment 2 Zohar Amir CLA 2015-11-23 23:54:02 EST
are there any plans to include this in eclipse (I noticed it's been here for a while now...)?
Comment 3 Zohar Amir CLA 2015-12-06 08:12:29 EST
why is there no response here since Feb 2011? can I do anything to help get this done?
Comment 4 Nitin Dahyabhai CLA 2016-01-20 10:59:39 EST
As was said in comment 1, high quality patches implementing the changes. Even examples of the intended formatting would be useful for someone looking to implement it.
Comment 5 Zohar Amir CLA 2016-01-21 03:28:26 EST
Created attachment 259292 [details]
example

an example I made up.
notice how the namespace attributes are each on it's own line, while the other attributes (e.g., attr2-1, attr2-2, attr-2-3) are on the same line.
I find it easier to read, maybe because the namespace attributes are longer by nature.
Comment 6 Zohar Amir CLA 2017-10-23 08:11:35 EDT
example sent on January. is there any plan to implement this? 
it's something I keep doing almost every day - indenting the namespaces manually...