OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] ANN: Regular Associations

[ Lists Home | Date Index | Thread Index ]
  • To: "David Tolpin" <dvd@davidashen.net>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] ANN: Regular Associations
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Sun, 4 Jan 2004 21:58:54 -0800
  • Thread-index: AcPSMATVBIXc1FkuRpG4C6bVW6RZ+gBIPuHh
  • Thread-topic: [xml-dev] ANN: Regular Associations

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@davidashen.net]
Sent: Sat 1/3/2004 11:26 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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>







 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS