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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-15 14:30 UTC by ssoong
Modified: 2007-09-25 01:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


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

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