Bug 205383 - Add Namespace and Grammar related templates
Summary: Add Namespace and Grammar related templates
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 3.0 M6   Edit
Assignee: David Carver CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks: 257250
  Show dependency tree
 
Reported: 2007-10-03 22:44 EDT by David Carver CLA
Modified: 2008-12-02 14:42 EST (History)
2 users (show)

See Also:


Attachments
Patch to add three XML Attribute templates. (4.02 KB, patch)
2007-10-03 22:44 EDT, David Carver CLA
bjorn.freeman-benson: iplog+
Details | Diff
Corrects No Namespace Schema Location template (1.88 KB, patch)
2008-11-26 14:36 EST, David Carver CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2007-10-03 22:44:39 EDT
Created attachment 79690 [details]
Patch to add three XML Attribute templates.

Currently the XML editors for WST contribute comment, xml declaration and xsl declaration templates.   The supplied patch, adds three additional xml attribute templates as well.

1. XML Schema Instance namespace.  Creates the appropriate xmlns entry for the XML  Schema Instance namespace.
2. XML Schema Location. Creates the attribute entry to define the xml schemalocation.  Useful for when an XML file may not have this included or a program didn't generate it.
3. No Schema Location.  Creates the attribute entry for the schema location.  User still needs to fill in the appropriate location.
Comment 1 Amy Wu CLA 2007-11-07 14:13:50 EST
I took a look at the attached patch and it looks like there are actually 4 templates, not 3.  Was an extra one accidentaly added in the patch?

Also, the templates for schema location & no schema location are the same.

I'm a little hesitant about adding these templates because I wonder if some of these are actually better as regular content assist proposals.  I know I've see xsi:type proposed before.  Maybe xsi:schemaLocation & xsi:noNamespaceSchemaLocation should also be proposed.
Comment 2 David Carver CLA 2007-11-07 16:07:03 EST
(In reply to comment #1)
> I took a look at the attached patch and it looks like there are actually 4
> templates, not 3.  Was an extra one accidentaly added in the patch?
> 
> Also, the templates for schema location & no schema location are the same.
> 
> I'm a little hesitant about adding these templates because I wonder if some of
> these are actually better as regular content assist proposals.  I know I've see
> xsi:type proposed before.  Maybe xsi:schemaLocation &
> xsi:noNamespaceSchemaLocation should also be proposed.
> 

The last one is to add a default namespace.  I agree that these should all really be included as default content assist, but currently it isn't done their.  So either way is fine with me.
Comment 3 Amy Wu CLA 2008-02-04 12:58:26 EST
mass reassignment of my bugs to xml-inbox
Comment 4 Nitin Dahyabhai CLA 2008-03-26 18:56:06 EDT
Added, thanks, Dave!
Comment 5 David Williams CLA 2008-04-24 00:43:42 EDT
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword. 
Comment 6 Nitin Dahyabhai CLA 2008-11-10 18:04:54 EST
Reopening.  Valentin discovered that the schema location and no schema location templates are the same.
Comment 7 Nitin Dahyabhai CLA 2008-11-10 18:05:30 EST
Dave, can you create a patch with a fix, whether that means removing or changing the templates?
Comment 8 Valentin Baciu CLA 2008-11-10 18:10:16 EST
(In reply to comment #6)
> Reopening.  Valentin discovered that the schema location and no schema location templates are the same.

Well, I saw it just today, but reading the other comments let's give credit to Amy. In comment #1 she says the same thing. Must've been missed initially.
Comment 9 David Carver CLA 2008-11-10 18:36:43 EST
I'll look at getting a patch tomorrow.
Comment 10 David Carver CLA 2008-11-21 22:37:03 EST
Haven't forgotten about this... will try and address over the holidays.
Comment 11 David Carver CLA 2008-11-26 14:36:49 EST
Created attachment 118830 [details]
Corrects No Namespace Schema Location template

This patch corrects the No Namespace Schema Location template so that it's pattern is correct.
Comment 12 David Carver CLA 2008-11-26 14:37:47 EST
Patch uploaded...Valentin or Nitind do you want to review it and apply it?
Comment 13 Valentin Baciu CLA 2008-12-02 14:33:04 EST
Amy, as per our chat please take care of this fix.

The better approach would be to close this bug and open new bugs for 3.0.4 and 3.1. Dave can attach the patch to the one for 3.0.4. That way the IP log and timeline for the fixes (target milestone) will be correct.
Comment 14 Amy Wu CLA 2008-12-02 14:42:25 EST
I'm resolving this bug back up as fixed because the fix was put into wtp 3.0
m6.

I've opened bug 257250 & bug 257254 to track the issue reported in comment #6.

Dave, could you please go ahead and attach your patch to those 2 bugs (I want
to make sure I get the contribution credits correct) And I'll go ahead and
release the fix for wtp 3.0.4 & wtp 3.1 m4.  Thanks.