This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14204

Summary: Allow XML entities editing
Product: xml Reporter: _ pkuzel <pkuzel>
Component: CodeAssignee: _ lkramolis <lkramolis>
Status: VERIFIED FIXED    
Severity: blocker Keywords: ARCH
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 20532    

Description _ pkuzel 2001-08-06 09:15:03 UTC
</pre>
XML Spec allows external parsed entities that are not well formed XML Documents
(e.g. violating single root WFC). The editor should be able to treat them. 
<p>Possible features:
<li>it should guess code completion on entity content
<li>well-formess check must pass issuing warning that an entity mode is used
<p>
The same apply for external DTD entities.
<pre>
Comment 1 _ srandhawa 2001-08-10 14:33:03 UTC
The text based completion depends upon tokens to generate the 
required raw data for completion support. To get completion on entity 
content would require expanding the entity in the document(j.s.t) or 
looking at a completely new approach. In the gui mode such could be 
possible.

I don't understand the purpose of "issuing warning that an entity 
mode is used". Whether entity mode is used or not should be the users 
prerogative. He can set or unset it using 
"http://xml.org/sax/features/external-general-entities" and 
"http://xml.org/sax/features/external-parameter-entities" or am I 
missing something here.
Comment 2 _ pkuzel 2001-08-10 14:50:19 UTC
These properties controls if parser dereferences entity reference as
it is parsing XML document. (Besides parameter one it does not work in
Xerces.)
On the other hand I mean external entities itself i.e.:

my.entity file:

 <msg>1</msg>
 <msg>2</msg>

It is not well formed XML document but it is well formed parsed
external entity. 

xhtml-table.mod file:

<!ENTITY % my "%ns;my">
<!ELEMENT %my; EMPTY>

Treating is identical like with standalone DTD but some parameter
entities need not be defined (e.g. ns may be defined at parent that
references it).
Comment 3 _ lkramolis 2002-03-27 13:29:18 UTC
Files .ent and .mod are recognized now:

* .mod is recognized as regular DTD document.

* .ent has separate data object and you can just open in in textual
editor with syntax coloring.
Comment 4 Mikhail Matveev 2008-02-15 16:40:08 UTC
Fixed long time ago