Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322539 - XML editor doesn't handle document in multiple files
Summary: XML editor doesn't handle document in multiple files
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: wst.xml CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 10:37 EDT by Rainer Klute CLA
Modified: 2013-06-19 11:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Klute CLA 2010-08-12 10:37:24 EDT
Build Identifier: 20100218-1602

In XML is is perfectly legal to separate out an XML fragment into a separate file B.xml and include it via an entity reference in the main document A.xml. However, I cannot use the WTP XML editor for syntax-driven editing of the fragment, since the editor does not seem to know that B.xml is part of A.xml and should be considered in the context of its environment by taking into account the DOCTYPE definition of A.xml and the position in the XML tree where B.xml is included.

If it is too hard to detect the dependency between A.xml and B.xml, some external hints could help. For example, Emacs with PSGML does this with a special instruction saying the A.xml is the parent document of B.xml and telling the editor the position of inclusion – see http://www.coli.uni-saarland.de/~fouvry/how-do-I.html (search for "fragments").

Reproducible: Always

Steps to Reproduce:
n/a