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

RE: Attribute Question

  • From: "Arnold, Curt" <Curt.Arnold@hyprotech.com>
  • To: "'xml-dev@ic.ac.uk'" <xml-dev@ic.ac.uk>
  • Date: Wed, 26 Aug 1998 14:56:08 -0600

attribute question
The XSchema and XML-Data efforts both attempt (or foreshadow) more
effective ways of having common attributes and content.  But in XML DTD,
you typically define an entity with common fragments and expand it later
in the DTD.

<!-- Defines entity  -->
<!ENTITY % LINKATTRS 'ID ID #IMPLIED
                      HREF CDATA #IMPLIED'>


<!ELEMENT A (#PCDATA)>
<!--  Uses entity to say that element A has ID and HREF attributes  -->
<!ATTLIST A %LINKATTRS;>

The ATTGROUP element in XSchema is an attempt to package this type of
information but XSchema 1.0 does not give you a way to reference a
existing ATTGROUP in a later element definition.  That functionality is
anticipated in a future release.

p.s. Your return address does not appear to be valid.  I attempted to
mail you a response to an early question privately and it bounced.

-----Original Message-----
From: Frank Blau [mailto:fblau@nina.snohomish.wa.gov]
Sent: Wednesday, August 26, 1998 3:16 PM
To: XML
Subject: Attribute Question


If I have 3 attributes ("Format", "Usage", and "Loop") that I want every
element in my DTD to have, is there a way to globally declare them? Do
subelements inherit the attributes of the parent element?

Frank

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


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.