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

Re: EMBED and validation

  • From: dgd@c... (David G. Durand)
  • To: Peter Murray-Rust <peter@u...>, xml-dev@i...
  • Date: Wed, 3 Dec 1997 13:12:24 -0400

xml embed src
On Dec 3,  9:00am, Peter Murray-Rust wrote:
> Subject: RE: EMBED and validation
> At 22:59 02/12/97 -0500, David G. Durand wrote:
> >At 12:12 AM -0000 12/3/97, Peter Murray-Rust wrote:
> Enlightenment has slowly come. I think we actually need an additional
> NOTATION as well as SRC so that the final document reads.

No. I will correct it again, levaing only _legal_ text in the message.

In the DTD, the following must appear (for XML-validating applications only):

<!NOTATION GIF
	 PUBLIC "+//IDN ds.internic.net/rfc/rfc2046.txt//NOTATION
         Multipurpose Internet Mail Extensions::image/gif//EN">
<!NOTATION JPEG
	 PUBLIC "+//IDN ds.internic.net/rfc/rfc2046.txt//NOTATION
         Multipurpose Internet Mail Extensions::image/jpeg//EN">

<!ELEMENT CML (IMG)*>
<!ELEMENT IMG (EMPTY)>
<!ATTLIST IMG SRC ENTITY #REQUIRED>

The Inbternal subset would look like this:

<!DOCTYPE CML [
<!ENTITY mygif SYSTEM "my.gif" NDATA GIF>
<!ENTITY myjpeg SYSTEM "my.jpg" NDATA JPEG>
]>
<CML>
<IMG SRC="mygif"/>
<IMG SRC="myjpeg"/>
> </CML>

The notation _does not need_ to appear on the link. At all. It's a property of
the _entity_. Once you declatre the entity you are done.

I _think_ that you can also turn the same instance markup into XLL markup (by
using HREF instead of SRC (or can you rename it, I forget), and also changing
the entity declaration.

I have to reread the XLL spec., as it's been a while.

> Have I finally got there? It seems to make sense... (The same levels of
> indirection still apply, of course).

No, you're still making it too complicated. Look at my entity declarations, and
instance markup carefully, that's the only thing I had to change.

------------------------------------------+----------------------------
David Durand                 dgd@c...| david@d...
Boston University Computer Science        | Dynamic Diagrams
http://www.cs.bu.edu/students/grads/dgd/  | http://dynamicDiagrams.com/
                                          | MAPA: mapping for the WWW



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/
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.