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 82741 - XML Editor, DTD association and auto-complete
Summary: XML Editor, DTD association and auto-complete
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
Depends on:
Reported: 2006-08-15 14:30 UTC by ssoong
Modified: 2007-09-25 01:33 UTC (History)
0 users

See Also:
Exception Reporter:

OpenLaszlo lzx.dtd (1.49 MB, text/plain)
2006-08-15 14:51 UTC, ssoong

Note You need to log in before you can comment on or make changes to this bug.
Description ssoong 2006-08-15 14:30:02 UTC
NetBeans IDE Dev (Build 200607161800)
1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-b05
Windows XP version 5.1 running on x86

I have no idea if this is a defect or absence of feature.
Does XML Editor have auto-complete feature?

These were the steps I did.
1. Added "LZX" to options->system->object types->XML Objects->mime & 

2. Associated LZX.DTD (OpenLaszlo) to PUBLIC id
at Run Time->DTD & XML Catalogs -> User Catalog.

3. Created in my project web folder d.lzx with the following content.
<!DOCTYPE canvas PUBLIC "LZX" "" >

<canvas width="1000" height="710" title="Hello">
   var ReaderButtonWidth=150;
 <dataset name="device" type="http"

These are the symptoms exhibited when editing this document.
1. Auto-complete suggestion of elements found in DTD does not pop-up.
2. starting a new tag anywhere, e.g. just after </script>, by keying in a left 
angle bracket "<", auto-complete kicks in without relenting me a chance to key 
any characters further by placing a </canvas> tag.

Is it because the DTD is inadequate, or I have missed a step in associating 
lzx.dtd in NB, or is XML Editor not capable of auto-completing from a DTD 
Comment 1 ssoong 2006-08-15 14:51:17 UTC
Created attachment 32950 [details]
OpenLaszlo lzx.dtd
Comment 2 Marek Fukala 2007-02-16 14:48:18 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
Comment 3 Marek Fukala 2007-02-16 14:50:04 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
Comment 4 matthewh 2007-04-25 12:03:37 UTC

Your PUBLIC id in 2. ( doesn't match your
PUBLIC id in 3. (LZX). Could you be confusing public and system ids?