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

Re: newbie dtd question

  • From: Norman Walsh <ndw@n...>
  • To: xml-dev <xml-dev@x...>
  • Date: 29 Jun 2000 13:31:08 -0400

resolve dtd locally
/ Leigh Dodds <ldodds@i...> was heard to say:
| Personally I think the best way to resolve this is to use a PUBLIC
| identifier
| rather than a SYSTEM identifier (which is what you're using I believe).

You can also use a URN instead of a URL as your URI (try saying that
three times fast :-). But then you *must* have a resolution method
(whereas with a URL you only need a resolution method if you can't or
don't want to reach over the web to the actual location specified by
the URL). And if you have an resolution method, you can use it for
URLs as well.

I've started using URLs for system identifiers for work I'm publishing
on the web (though I may shortly go through the IETF URN registration
process and get my own official NID. Then I'll be tempted to start
using URNs in a vain effort to force the issue of resolution. It
*stuns* me that the world has survived so long without it.).

For example, I use something like:

  <!DOCTYPE whatever PUBLIC "-//Norman Walsh//DTD whatever V1.0//EN"
                     "http://nwalsh.com/whatever/1.0/whatever.dtd">

On my local system, I have a SAX entityResolver hook that looks up the
specified system identifier and replaces it with a local declaration
if one exists. This way, I get fast access to the resource locally,
but I don't publish a bunch of system identifiers that only work on my
machine.

| PUBLIC identifiers avoid the need to hard code path names into DOCTYPE
| declarations.
| Until recently there was no easy/standard way to achieve this in XML.

Unfortunately, you must provide a SYSTEM identifier and consequently
many systems assume they can use that without indirection.

| Norman Walsh has an article [1] on this, with some accompanying classes
| which should
| help you out further.

(Thanks :-)

| 
| [1].
| http://www.arbortext.com/Think_Tank/Norm_s_Column/issue_three/issue_three.ht
| ml

As a next step in the evolution of the work I've done on catalogs, I'm
considering attempting to get an OASIS TC formed to revise the TR9401
Catalog file format into an official XML vocabulary with a proper
namespace. Then, in addition to updating the classes to support an
official XML catalog specification, they could be extended to handle
RFC2483 resolution over the web. (In fact, I have a prototype of this
system already running on my laptop :-)

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@E... | Why in our youth does the life we still
XML Technology Center     | have before us look so immeasurably long?
Sun Microsystems, Inc.    | Because we have to find room for the
                          | boundless hopes with which we cram
                          | it.--Schopenhauer

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.