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

Re: XML API specification

  • From: Richard Light <richard@l...>
  • To: xml-dev@i...
  • Date: Thu, 27 Feb 1997 18:11:28 +0000

ddb node
In message <3.0.32.19970227083301.009c3960@m...>, Derek
Denny-Brown <ddb@c...> writes
>hmmm...
>
>How does is a Property which is a NodeList represented?
>What about a integer/string/boolean Property? 
>Or even worse, and integer list or a string list!  

The way it's done in the Property Set approach is to start by defining a
set of data types, some of which are 'lists of' more primitive data
types.  Excuse the home-grown notation:

{node}
{nodelist listof=node}
{enum} (for enumerated sets of values)
{char}
{string listof=char}
{integer}
{intlist listof=integer}
{strlist listof=string}
{compname} 
{cnmlist} (the last two relate to the Property Set defns themselves, and
don't concern us - I think!)

Once you've got that out of the way, you simply associate a data type
taken from this list with each property you declare.

In a similar spirit, every {node} has intrinsic properties:

PROPERTY SET: NODEPROP

Module: INTRBASE
    Property: CLASSNM (class name) [COMPNAME]
    Property: GROVROOT (grove root) [NODE]
    Property: SUBPNS (subnode property names) [CNMLIST]
    Property: ALLPNS (all property names) [CNMLIST]
    Property: CHILDPN (children property name) [COMPNAME]
    Property: DATAPN (data property name) [COMPNAME]
    Property: DSEPPN (data sep property name) [COMPNAME]
    Property: PARENT [NODE]
    Property: TREEROOT (tree root) [NODE]
    Property: ORIGIN [NODE]
    Property: OTSRELPN (origin-to-subnode rel property name) [COMPNAME]

Richard Light
SGML and Museum Information Consultancy
richard@l...
3 Midfields Walk 
Burgess Hill
West Sussex RH15 8JA
U.K.
tel. (44) 1444 232067

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.