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

Bug 218729

Summary: Invalid XML Editor Validation message for Processing Instructions
Product: [WebTools] WTP Source Editing Reporter: David Carver <d_a_carver>
Component: wst.xmlAssignee: Valentin Baciu <valentinbaciu>
Status: CLOSED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description David Carver CLA 2008-02-12 20:05:35 EST
Eclipse 3.3.1 and Eclipse 3.4
Webtools 2.0.1, 2.0.2, and 3.0 M4

Related to bug 198297, the xml syntax validation is complaining about spaces in front of processing instructions.   The XML Specification does not say that processing instructions can't have white space in front of them.  In fact many XML Serilization tools with indenting support will indent embedded processing instructions.   This is very typically seen when using Xalan or Saxon and the xsl:output indent="yes" option.    The only place where processing instructions don't get what space is at the beginning of the file before any other XML, but if embedded they can be formatted.
Comment 1 Valentin Baciu CLA 2008-07-16 17:44:26 EDT
Dave, I have tried this with the latest WTP 3.0.1 build and I don't see any errors being generated for indented processing instructions. Perhaps this was fixed indirectly?

Please re-try the scenario and re-open if still an issue.
Comment 2 David Carver CLA 2008-07-17 09:13:31 EDT
(In reply to comment #1)
> Dave, I have tried this with the latest WTP 3.0.1 build and I don't see any
> errors being generated for indented processing instructions. Perhaps this was
> fixed indirectly?
> 
> Please re-try the scenario and re-open if still an issue.
> 

I think this was fixed along with bug 198297.
Comment 3 Valentin Baciu CLA 2008-07-17 10:25:17 EDT
Closing.