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

RE: URNs in SYSTEM declarations

  • From: Kelly Campbell <camk@c...>
  • To: Miles Sabin <msabin@c...>, XML-Dev Mailing list <xml-dev@i...>
  • Date: Wed, 20 Oct 1999 10:48:25 -0600

kelly campbell
We're using something similar to the URN. Basically, we just put the
filename in the system declaration, and have a EntityResolver registered
with the parser that knows where all the dtd files reside, and can return
them as InputStreams. This makes it so we can store the dtd's in a central
location on the filesystem, or in a database. For example:

<!DOCTYPE blah SYSTEM "blah.dtd">

This works great on xml4j, except it only works with one file. For example,
if we try to include another dtd with an <!ENTITY % common_dtd SYSTEM
"common.dtd"> in the main dtd, the parsing fails unless we use the full path
in the system designator.

Does anyone know if this is a valid use of the system declaration, and if
so, is xml4j just buggy on resolving multiple files?

Thanks,
Kelly
--
Kelly A. Campbell                       Commerce Core Engineer
<kelly.campbell@c...>       ChannelPoint, Inc.
<camk@p...> <camk@a...>        Colorado Springs, Co.
Voice: 719-867-9324                     AIM: chptcamk


> -----Original Message-----
> From: Miles Sabin [mailto:msabin@c...]
> Sent: Wednesday, October 20, 1999 9:57 AM
> To: XML-Dev Mailing list
> Cc: Simon St.Laurent
> Subject: RE: URNs in SYSTEM declarations
> 
> 
> Simon St.Laurent wrote,
> > URNs are an acceptable part of the URI spec, but XML 
> > processors may have no way to resolve them to actual 
> > resources.  What should a validating parser do when 
> > confronted by:
> >
> > <!DOCTYPE myDoc SYSTEM "urn:itsSoObvious">
> 
> Exactly the same as what it would do if confronted by
> 
>  <!DOCTYPE myDoc SYSTEM "http://foo.bar.com/itsSoObvious">
> 
> if it had no way of resolving an http URI to an actual
> resouce: report an error.
> 
> Given that not many XML processors have URN resolution 
> support at the mo', I guess this means the combination of 
> URNs for DTDs + validation isn't a very good idea (yet).
> 
> Cheers,
> 
> 
> Miles
> 
> -- 
> Miles Sabin                          Cromwell Media
> Internet Systems Architect           5/6 Glenthorne Mews
> +44 (0)181 410 2230                  London, W6 0LJ
> msabin@c...           England
> 
> xml-dev: A list for W3C XML Developers. To post, 
mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN
981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.