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

RE: Syntax versus Semantics (was: "vocabularyconstraints" and

  • From: "Costello, Roger L." <costello@m...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Mon, 2 Mar 2009 07:50:22 -0500

RE:  Syntax versus Semantics (was:  "vocabularyconstraints" and
Hi Folks,

Michael Kay wrote: 

> We're talking here about rules for 
> deciding statically whether a document 
> is or is not a member of some set of 
> valid documents

What does it mean to "statically decide"?


> I would suggest one might classify the 
> validity rules according to the 
> computational power needed to express 
> them:

... computational power  needed to <<express>> them

Do you mean: 

... computational power needed to <<evaluate>> them

That is, do you mean "evaluate" or "express"?
 

Categories:

> (a) those rules that can be expressed using regular expressions
> 
> (b) those rules that can be expressed in BNF
> 
> (c) those rules that can be expressed in first-order 
> predicate calculus
> (e.g. XPath 2.0)
> 
> (d) those rules that can only be evaluated using a Turing machine.

Here I rephrase the categories using the term "evaluate" rather than "express":

(a) Those rules that can be evaluated using a computer that has the power to evaluate regular expressions.

(b) Those rules that can be evaluated using a computer that has the power to evaluate BNF expressions.

(c) Those rules that can be evaluated using a computer that has the power to evaluate first-order predicate calculus (e.g. XPath 2.0) expressions. 

(d) Those rules that can only be evaluated using a Turing machine.

Do these faithfully express what you mean?


> > XSD 1.1 gives us (a) and (c).

Isn't (b) just grammar rules, e.g.

  The Book element shall contain a sequence of 
  Title, Author, Date, ISBN, and Publisher elements


This is fascinating:

    A thing can be categorized as in the realm 
    of "syntax" based on how much computing 
    power is required to evaluate it.


/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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-2007 All Rights Reserved.