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

Re: Are we losing out because of grammars?

  • From: "Thomas B. Passin" <tpassin@h...>
  • To: xml-dev@l...
  • Date: Thu, 01 Feb 2001 09:22:03 -0500

paul s case symbols
Paul Tchistopolskii wrote -
>
> 1. Let's assume that I have some schema, expressed in terms of RELAX.
> ( SQL 'core' == simple CREATE TABLE )
>
> 2. Now I want to write some 'more complex' rules / constraints a-la
Schematron
> ( SQL 'layer 2' == constraints and / or  triggers ).
>
> 3. I want to write 2 sometimes using the entities which I've defined at the
step 1.
>
> How can I do that ?
>
One thing to remember about SQL in this connection, is that the data
definition language, the query language, and the constraint language use
essentially the same lexical and syntactic structure.  Once a symbol has been
defined or created, say by "layer 1", it is persistently available to all
other 'layers'.

This makes life easier since the same parsing machinery and similar thinking
processes work at all levels.  What's not clear to me here is whether xml
itself would play that role or not.  If we had, say, a Schematron layer "on
top of" a RELAX schema, are these really similar enough to play together in
the same way as DDL and DQL in SQL (oh-oh, alphabet soup --down, boy!)?

Whichever way, access to the same symbols (elements and attributes, I suppose,
for Paul's case) is needed by all the layers.  So it seems that the core thing
that is needed is a mechanism to persist and share that level of information -
sounds like symbol tables, but there could be many ways to go about it.  With
such a mechanism, you could layer quite a few different kinds of layers if you
wanted.  Maybe someone could come up with a plug-in approach for layers.  This
approach might allow you to avoid a DOM based approach.  This could be good
because the (quasi) persistent structures would need fewer resources, and
could be built using SAX.

Hmm, YAAPI (yet another API)?

Cheers,

Tom P



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.