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

Summary: XML Editor, DTD association and auto-complete
Product: xml Reporter: ssoong <ssoong>
Component: Text-EditAssignee: issues@xml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: OpenLaszlo lzx.dtd

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 & 
extensions.

2. Associated LZX.DTD (OpenLaszlo) to PUBLIC id 
http://www.laszlosystems.com/lzx.dtd
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" "http://www.laszlosystems.com/lzx.dtd" >

<canvas width="1000" height="710" title="Hello">
 <script>
   var ReaderButtonWidth=150;
 </script>
 <dataset name="device" type="http"
  src='http://localhost:8180/SOS/session/start.jsp'/>
</canvas>

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 
alone?
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
welcomed.
Comment 3 Marek Fukala 2007-02-16 14:50:04 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
welcomed.
Comment 4 matthewh 2007-04-25 12:03:37 UTC
Ssoong,

Your PUBLIC id in 2. (http://www.laszlosystems.com/lzx.dtd). doesn't match your
PUBLIC id in 3. (LZX). Could you be confusing public and system ids?


Regards,

Matthew.