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

narrowing a DTD

  • From: Bill Wadley <bill@w...>
  • To: xml-dev@i...
  • Date: Thu, 1 Apr 1999 06:11:48 -0600 (CST)

svg overlay

Hello!

EXECUTIVE SUMMARY:
I would like to take a currently existing DTD (e.g. Scalable Vector
Graphics, SVG), _overlay_ some different semantics onto it, and create a
subset of the SVG DTD.

DISCUSSION:
I would like to create a SVG document that is 100% SVG with no new
ELEMENTS, ENTITIES or anything. However, I'm creating this document from
some other data structure that does not map 1:1 to SVG. I would like this
*mapping* to be a *standard* in it's own right for use in a particular
community. Essentially, I would like an SVG-like DTD, a pure subset with
different semantics, that would be used to create the SVG-overlay document.
The full SVG DTD can still be used to *extend* the SVG-overlay DTD, but
when we go to parse the SVG-overlay document, we can ignore the extended
SVG and just go for the SVG-overlay stuff knowing that the creator of the
document used the SVG-overlay DTD and that the ELEMENTS and things mean
what we think they mean. On the other hand, we can pass the SVG document
and the full SVG DTD to an SVG drawing program, and it will have no
problems just drawing the picture as usual.

So that is what I want; question is, how do I do it? My immediate response
is to take the SVG DTD and start removing things, but that's not enough. We
need to use some of the CDATA attributes to hold specific information in a
specific format; this would imply that we need to "override" declarations
in the original DTD somehow. It may also be necessary to increase the
restrictions on ELEMENT declarations. Nothing needs to be added or
relaxed. (If this weren't not true, I would say all is lost, but this is a
narrowing, not a broadening.)

I'm trying to be concise, but if I'm not being clear, I'll be happy to try
again.

Any light shed on this problem will be greatly appreciated.

Thanks!

B-)

--
Bill Wadley     |GAT/d-(++) s++: a C++++ UL++++$ P++++$ L+++>++++ E- W+++$   |
bill@w... |N+++ w-- O-- M-- PS+ PE Y++ PGP++ t++ 5++ X- R+ tv b++++ D++|
bill.wadley.org |G++ e* h--- r+++ y?       bill.wadley.org/PGP_KEY.html      |
"The dinosaurs became extinct because they didn't have a space program."
                                                          -Larry Niven


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 (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe 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.