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

RE: ANN: Regular Associations

  • To: "David Tolpin" <dvd@d...>,<xml-dev@l...>
  • Subject: RE: ANN: Regular Associations
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Sun, 4 Jan 2004 21:58:54 -0800
  • Thread-index: AcPSMATVBIXc1FkuRpG4C6bVW6RZ+gBIPuHh
  • Thread-topic: ANN: Regular Associations

last names list
Sounds like you've invented a more verbose version of XPath 1.0. 
 
-- 
PITHY WORDS OF WISDOM
Blessed are the meek for they shall inherit the Earth, minus 40% inheritance tax. 

________________________________

From: David Tolpin [mailto:dvd@d...]
Sent: Sat 1/3/2004 11:26 AM
To: xml-dev@l...
Subject:  ANN: Regular Associations



Hi,

The idea is inspired by James Clark's approach to Clark's schema
location approach for nXML,
http://groups.yahoo.com/group/emacs-nxml-mode/message/259.

I was going to implement it for my needs, but realized that a more
consistent solution would be more appropriate. The original proposal
lists a number of features which can be used to determine a document's
type; however, the exact set of chosen features, while can be practical
for some applications, can become a certain obstacle for others.

In fact, regular expressions can be used. For URIs, that is, for files' names,
there are string regular expressions, in any of the many available syntaxes;
for XML, that is, for files' contents, the regular expressions language is
Relax NG.

One does not need to specify a complete syntax for either URIs or contents
to choose between document types:
- /.*\.rng/ is a pattern for the name of a file with Relax NG grammar inside;

-
    namespace rng = "http://relaxng.org/ns/structure/1.0"
    start = element rng:* {any}
    any = (element * {any}|attribute * {text}|text)*

  is a Relax NG pattern for the contents of a file with Relax NG grammar inside.

ARX, http://davidashen.net/rnv.html , is a tool that uses a list of regular
(string and XML) patterns to associate files with symbolic names (of
grammars, stylesheets etc.).

David Tolpin
http://davidashen.net/

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>




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.