Uploaded image for project: 'Click'
  1. Click
  2. CLK-587

Define an official DTD DOCTYPE declaration in click.xml

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0 RC1
    • 2.1.0
    • core
    • None

    Description

      In a xml file, providing a dtd or schema declaration is not necessary but I think it is essential.
      Currently the click.xml is lack of Dtd declaration header, like the following.

      <?xml version="1.0" encoding="UTF-8" ?>
      <!DOCTYPE click-app PUBLIC
      "-//Apache Software Foundation//DTD Click Configuration 2.1//EN"
      "http://click.apache.org/dtds/click-2.1.dtd">

      <click-app>
      ....
      </click-app>

      In the click.xml, providing a doctype declaration(the red section, it is just an example) is helpful for IDE. NetBeans IDE can use this declaration to determine if this file is a click configuration file, perform xml validation and provide basic code completion automatically ( The click for netbeans plugin provide basic code completion by the grammar api, and extra code completion is provided by Code completion api , eg. extra code completion for package, path and classname attribute value).

      Please publish an official dtd online in future version.

      Attachments

        Activity

          People

            sabob Bob Schellink
            hantsy hantsy bai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: