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

Parser question...

  • From: Kim Covil <kimc@n...>
  • To: xml-dev@i...
  • Date: Mon, 13 Jul 1998 23:15:31 +0800

first and follow
I am hoping this is the correct place to post a couple of questions
I have at present...

We (my boss and I) are currently developing a metadata system using
xml to describe and reference the various different data sets we 
have, into a single body of information... The idea is to have a
single description file for each resource (document, GIS dataset, 
3d model) that enables us to index all our resources and create
multiple views of each resource from the the description files...

Currently we are using an SGML parser to parse the xml description
files and a perl script to walk through the parsed tree and output
whichever view of the data is required (HTML, VRML, image data...)
The perl interface we are using is SGML::SPGrove written by 
Ken MacLeod to link with James Clark's SP...

We are reasonably happy with the way this works although a touch
more speed would be helpful as the views the scripts create are
created on the fly... I have been wondering whether there are any
tools out there that will 'cache' the parsing of a DTD... As all
our resources use the same DTD, each time a view is created the
xml file is parsed... the DTD is referenced... the DTD is parsed 
and then the xml is validated... 

It seems to me that we should be able to reuse the middle bit... 
Are there any tools that treat a DTD as an input to create a 
validating parser...? I am think of the sort of thing lex and yacc 
do...

That was my first question... My second is more of a clarification...
I am still a little unsure of the use of NOTATIONs... I think
they would be perfect for encapsulating data that will be stored
in the xml that we are going to hand to a 'handling' package to
produce the resource... ie:

<!NOTATION arcinfo...
<!NOTATION vulcan...
<!NOTATION [others]...

<!ELEMENT gisdata (parameters,type)>
<!ATTLIST gisdata package NOTATION (arcinfo|vulcan|...) #REQUIRED>
<!ELEMENT parameters (#PCDATA)>
<!-- the format of the data in parameters depends on the package
     of the gisdata element and will basically be a parcel of
     parameters to be handed to the package such that it will
     return the required object/resource -->

Is this sort of thing correct usage of NOTATIONs or should this be
done using PIs and if so could someone show me how it would be
done...?

Cheers,

Kim
--
====================================================================== 
Kim Covil - Australian Geodynamics CRC   E-mail: kimc@n... 
            CSIRO Exploration & Mining   Tel: +61 8 9284 8425   ,-_!\
            PO Box 437, Nedlands,        Fax: +61 8 9389 1906  /     \
            Western Australia  6009                            *_,-._/   
=================================================================== v 
   Please direct all personal e-mail to kimbotha@c...

     

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.