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

Architectural Form

  • From: David Megginson <ak117@f...>
  • To: xml-dev@i...
  • Date: Thu, 23 Apr 1998 21:59:45 -0400

architectural form
Pax Prakarsa writes:
 > Hi Dave:
 > 
 > This is about "architectural form". The example below is from your book
 > "Structuring XML documents"
 > 
 > Please help me on the following points.

 > 1. Is there any architectural engine already implemented out there ?

Yes: James Clark's SP set of tools (including the Jade DSSSL engine)
have architectural support:

  http://www.jclark.com/

These don't yet, to my knowledge, support the PI-construct required
for XML, but Eliot Kimber has just announced SP patches from ISOGEN
that do just that.

 > 2. If I want to build one myself, what does it take to build it ? I
 > suppose I can use any XML parser. (or can I ? validating/non
 > validating parser ?). and then build a module that is capable to
 > determine which are the architectural elements ?

It depends on how deeply you want to go.  You can certainly hack
together something very useful with SAX (I am considering doing so
myself some day), but you need to get at the DTD to do complicated
stuff like layered architectures or defaulted values for architectural
attributes.

 > 3. A client document as in your example: page 302-303
 > <doc>
 >     <header>
 >         <doctitle>Title</doctitle>
 >         <byline>Author</byline>
 >         ...
 >         ...
 >     </header>
 >     <body>
 >         ...
 >         ...
 >     </body>
 > </doc>

 > The elements in the above example which are architectural elements
 > are: <doc>, <doctitle>, and <byline>, while the other elements are
 > 'native' elements defined within the DTD for that document.  My
 > question is: can this client document still be validated using the
 > "derived/client DTD", even though it contains a mix of
 > 'architectural' elements and 'native' elements ?

Yes, it can -- the start and end tags of the non-architectural
elements will be ignored, and you can control what happens to their
data and element content.


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.