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

Re: various issues

  • From: Peter@u... (Peter Murray-Rust)
  • To: dmeggins@u...
  • Date: Fri, 11 Apr 1997 17:54:26 GMT

math symbol name
Thanks very much - it's becoming clearer, and at least I've got the direction 
correct :-).  But I'm not clear what quantities are inherited...

For discussion assume that the declarations belong to MYDTD

In message <199704111037.GAA00242@localhost> David Megginson writes:
> 
>   <?ArcBase html?> <?ArcBase math?>

So in C++ terms MYDTD has two base  classes, HTML and MATH.  

> 
>   [notations and entities omitted]
> 
>   <!ELEMENT para ...> 
>   <!ATTLIST para
>     html      NAME    #FIXED "p">

This means that PARA (in MYDTD) inherits properties from P (in HTML).  Does
that mean it automatically inherits the content model and the attributes?
For example, the content model of P is
	(%text)*
which expands to 
	(#PCDATA | IMG | BR | EM)*  <!-- several missed out -->
Can PARA assume these or does it have to map each of these (e.g. IMG) onto
html:
	<!ELEMENT image ...>
	<!ATTLIST image
	  html    NAME #FIXED "img>
etc.
similarly does PARA have to explicity declare the same attributes as P in HTML?

> 
>   <!ELEMENT fraction ...> 
>   <!ATTLIST fraction
>     math      NAME    #FIXED "frac">
> 
>   <!ELEMENT sym ...> 
>   <!ATTLIST symbol
>     html      NAME    #FIXED "sym" 
>     math      NAME    #FIXED "symbol">
> 
This is - presumably - multiple inheritance in that SYMBOL inherits something
from HTML.SYM and MATH.SYMBOL (though I'm not clear what).  How does the
content of SYMBOL relate to either of its two base classes?

	P.

-- 
Peter Murray-Rust, domestic net connection
Virtual School of Molecular Sciences
http://www.vsms.nottingham.ac.uk/

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (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.