[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Looking for an example of a name colliision


extension point example
Thanks for the examples. I understand the point you are making much better
now. To reinforce your point, HTML input isn't very much like namespace
usage, but here is an example that is: The Eclipse IDE allows plugins to
communicate with each other in their respective "plugin.xml" files via
plugin-defined extension points. The offerer of the service in plugin
"com.example.plugin" declares it with an element of the form:

<extension-point id="myextension" ...>

And the user of the service hooks up to it using an element of the form:

<extension point="com.example.plugin.myextension"
{extension-defined-attributes}>
  {extension-defined-elements}
</extension>

No namespace, no prefixes, no colons; same effect. One bumps into this kind
of usage all over the place (perhaps that's why RELAX NG caters to it so
well).

However, back to my original use case. A document designer wants to allow
foreign attributes and elements to be freely intermixed with those of the
document type, as, for example, foreign elements and attributes are allowed
in XML Schema and RELAX NG. These foreign items are ignored by "normal"
document processing, but may be used by other processors, like Schematron
annotations to the aforemention schema languages are used to provide
additional validation. Some convention needs to be established that will
allow foreign items to be distinguished from any current or future
"domestic" items, and to prevent name collisions among foreign annotations
from different domains. Both XML Schema and RELAX NG currently use
namespaces as this convention. Can you suggest a better one?

Bob


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.