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

Derived DTD - overriding attributes

  • To: xml-dev <xml-dev@l...>
  • Subject: Derived DTD - overriding attributes
  • From: Kevin Burges <xmldude@b...>
  • Date: Wed, 14 Nov 2001 11:50:38 +0000
  • Organization: Formedix Ltd.
  • Reply-to: Kevin Burges <xmldude@b...>

overriding dtd

I need to create one DTD derived from another. The docs for the base
DTD say that I should use this structure:

    -----------------
    <!-- Put here to override existing attribute declarations -->

    <!-- Put here to override existing entities from the base DTD -->

    <!-- Define and use an entity reference to the base DTD -->
    <!ENTITY % baseDTD SYSTEM "http://127.0.0.1/dtd/base.dtd">
    %baseDTD;

    <!-- Put new element declarations here -->

    <!-- Put new attribute declarations here -->
    
    -----------------

I want to override an ATTLIST to add an extra choice to one of the
attributes. I tried putting the new ATTLIST declaration above the
inclusion of the base DTD, as suggested.

I am using XMLSpy (4.1) as my editor, and it did not pick up the new
attribute value.

I tried moving the ATTLIST to beneath the inclusion of the base DTD
and it then worked.

When duplicate ATTLISTs are found, is it not supposed to be the first
one that is used? This is certainly not the behaviour XMLSpy seems to
be giving me. Or am I doing something wrong?


-- 
May the flares be with you,
 Kevin                     kevin@b...

+++++++++++++ Cool music - http://mp3.com/marshan
++ Attitude Rock Webzine - http://burieddreams.com/attitude


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.