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

AFs and the DPH (Was Animal Friends, etc.)

  • From: David Megginson <ak117@f...>
  • To: Peter Murray-Rust <peter@u...>
  • Date: Thu, 2 Oct 1997 09:38:45 -0400

AFs and the DPH (Was Animal Friends
Peter Murray-Rust writes:

 > However, all the benefits from AFs have to be realised by having an
 > AF-aware processor (I differentiate parser from processor - an ESIS stream
 > could be input into an AF-aware processor). My understanding is that:
 > 	- there are no freely available AF processors
 > 	- generic AF processors are beyond the ability (or at least the time) for
 > a DPH to write from scratch
 > 
 > Therefore AFs are only available to largish groups with time and/or
 > money... This rules out the DPH.

Actually, none of these statements is true.  I am working on a very
large project where people are using Omnimark and even ACL to work
with architectural forms.  Further more, the SP-family of programs --
nsgmls, jade, sgmlnorm, etc. -- have a full-featured architectural
engine built right in.

In the simplest sort of architectural processing, you simply designate
an attribute name -- say, Biblio -- and take actions based on the
attribute's value for different element types.  For example, with

  <monograph Biblio="entry">...</monograph>

you would note that the value of the Biblio attribute is "entry" (or,
more generally, that "entry" is the architectural form of this
element) and process the contents accordingly.  With

  <byline Biblio="author">...</byline>

you would note that the architectural form is "author", and process
accordingly.  In a different document type, you might have

  <responsibility Biblio="author">...</responsibility>

However, since the value of the Biblio attribute is the same, you
should be able to process it with the same code.

A very easy way to set this up is to use #FIXED attributes declared in
the DTD:

  <!ATTLIST monograph
    Biblio  CDATA #FIXED "entry">

  <!ATTLIST byline
    Biblio  CDATA #FIXED "author">

That way, when an author includes

  <byline>David Megginson</byline>

your software will see

  <byline Biblio="author">David Megginson</byline>  

Of course, if you are doing DTD-less parsing (ick), you can specify
the architectural form attribute values explicitly on the elements, as
in the earlier examples.


All the best,


David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

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.