Ticket #108 (closed enhancement: fixed)

Opened 2 years ago

Last modified 23 months ago

Uniform XML schema namspace naming convention

Reported by: MartinLeidig Owned by: MartinLeidig
Priority: major Milestone: 0.15.0
Component: Core (general) Version:
Keywords: Cc:

Description (last modified by MartinLeidig) (diff)

Change History

Changed 2 years ago by MartinLeidig

  • milestone changed from 1.1.0 to 0.15.0

Changed 2 years ago by MartinLeidig

  • description modified (diff)

Changed 2 years ago by MartinLeidig

Keeping the namespace and only adjusting/versioning the location has its pros and cons. It can be easier for maintaining backward compatibility, but Pustefix's schemas are relatively unstable and quickly evolving. It's ok if not even intended that applications are forced to upgrade their instance documents when the schema has changed. So I would prefer having the version in the namespace (minor backwards compatible changes can still be modeled using a versioned schema location, but major changes should also change the namespace).

Changed 2 years ago by MartinLeidig

I think we should follow the naming scheme of the w3c.org having the year (and optionally month) as part of the URL path. Most namespaces are already in this form, e.g. http://www.pustefix-framework.org/2008/namespace/properties-config (don't know if "namespace" is really needed, but let's keep changes small and keep it). So the proposed scheme is: http://www.pustefix-framework.org/[year]/namespace/[type] The schema files have to be accessible from the website under this path: http://www.pustefix-framework.org/[year]/namespace/[type].xsd

Changed 2 years ago by MartinLeidig

Adapted statuscodeinfo namespace to new scheme: <statuscodeinfo xmlns="http://www.pustefix-framework.org/2008/namespace/statuscodeinfo"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pustefix-framework.org/2008/namespace/statuscodeinfo

http://www.pustefix-framework.org/2008/namespace/statuscodeinfo.xsd">

Because parsing of statuscodeinfo.xml isn't done namespace aware, this change doesn't break applications, but adapting the namespace is recommended.

Changed 2 years ago by MartinLeidig

Changed IWrapper namespace from " http://pustefix.sourceforge.net/interfacewrapper200401" to "http://www.pustefix-framework.org/2008/namespace/iwrapper". The old namespace still works but is marked as deprecated (warnings will be printed out during IWrapper generation).

Changed 2 years ago by MartinLeidig

Changed beanmetadata namespace from " http://pustefix.sourceforge.net/bean-metadata" to "http://www.pustefix-framework.org/2008/namespace/bean-metadata". Because beanmetadata.xml isn't parsed namespace aware, this doesn't break applications, but adapting the namespace is recommended.

Changed 2 years ago by MartinLeidig

Changed moduledescriptor namespace from " http://pustefix.sourceforge.net/moduledescriptor200702" to "http://www.pustefix-framework.org/2008/namespace/module-descriptor". Made parsing non-namespace-aware, so old modules don't break, but should be adapted.

Changed 23 months ago by MartinLeidig

Changed scriptedflow namespace from " http://pustefix.sourceforge.net/scriptedflow200602" to "http://www.pustefix-framework.org/2008/namespace/scriptedflow". Old namespace still works, but produces "deprecated" warnings.

Changed 23 months ago by MartinLeidig

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.