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

Re: Taxonomies in XML

  • From: "W. Eliot Kimber" <eliot@i...>
  • To: xml-dev@i...
  • Date: Thu, 16 Apr 1998 08:37:22 -0500

taxonomy xml
At 10:31 PM 4/15/98 -0800, John Totten wrote:
>The 30 or so XML files that represent the El Limon Weeds Collection
>(one separate file for each weed) will impress a Web Master but not a
>botanist because you cannot produce a taxonomy from them.
>	 How can you add nodes and unlimited nesting to XML documents?

By editing them?

XML documents have no inherent nesting limit (although there will always be
a practical limit imposed by your processing software).

If a document does not have an explicit DTD, then, by definition, you are
free to change it at will, because it defines its rules by its own content.

If a document does have an explicit DTD, they, by definition, you are free
to change it at will because the DTD is a property of the document--the
document defines its own rules by declaring them in *its* DTD. If the DTD
is an external DTD subset that you don't have write access to, just copy it
into the internal subset and go on your way. [Hint to ADEPT*Editor users:
try the command 'dtgen' from the ADEPT command line if someone has tried to
impose a "standard" DTD on you.]

You can also create taxonomies using references or hyperlinks, e.g.,:

<?XML version="1.0" ?>
<!-- kimberpets.xml -->
<!DOCTYPE Pets [ 
 <!NOTATION XPointer 
   PUBLIC "+//IDN w3.org//NOTATION XML eXtended Pointer Language//EN" >
 <!ATTLIST housecat 
    is-a
      CDATA
      #FIXED "./taxonomy.xml#id(feline)"
    loctype
      CDATA
      #FIXED "is-a queryloc XPointer"
 >
 <!ATTLIST dog 
    is-a
      CDATA
      #FIXED "./taxonomy.xml#id(canine)"
    loctype
      CDATA
      #FIXED "is-a queryloc XPointer"
 >
 <!-- NOTE: loctype is defined by the HyTime "reference location
            address" facility, clause 7.9 of ISO/IEC 10744:1997,
            http://www.ornl.gov/sgml/wg4/docs/n1920/html/clause-7.8.html
   -->
]>
<Pets>
<housecat>
  <name>Seigfried Woods</name>
</housecat>
<housecat>
  <name>Bete Noir Woods</name>
</housecat>
<dog>
  <name>Forrest Woods</name>
</Pets>  

<!-- taxonomy.xml -->
<?XML version="1.0" ?>
<!DOCTYPE taxonomy [
  <!ATTLIST family
     ID
       ID
       #REQUIRED
  >
]>
<taxonomy><!-- NOTE: I don't know the right terms here, please forgive
                     my ignorance in this matter.-WEK -->
 <family id="feline">A catish thing</genus>
 <family id="canine">A dogish thing</genus>
</taxonomy>

This could also be done with extended links:

<?XML version="1.0" ?>
<taxonmic-web>
 <extended role="is-a">
  <locator 
   role="pet" 
   href="./kimberpets.xml#child(1,housecat)"/>
  <locator
   role="family"
   href="./taxonomy.xml#id(feline)"
  />
 </extended>
 <extended role="is-a">
  <locator 
   role="pet" 
   href="./kimberpets.xml#child(2,housecat)"/>
  <locator
   role="family"
   href="./taxonomy.xml#id(feline)"
  />
 </extended>
 <extended role="is-a">
  <locator 
   role="pet" 
   href="./kimberpets.xml#child(1,dog)"/>
  <locator
   role="family"
   href="./taxonomy.xml#id(canine)"
  />
 </extended>

Cheers,

Eliot
--
<Address HyTime=bibloc>
W. Eliot Kimber, Senior Consulting SGML Engineer
Highland Consulting, a division of ISOGEN International Corp.
2200 N. Lamar St., Suite 230, Dallas, TX 95202.  214.953.0004
www.isogen.com
</Address>

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.