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

Re: ANN: Regular Associations


xmlbuddy relax rng
My quick reaction is it looks like you're proposing to validate the 
entire file to determine what schema to use for the file. Possibly many 
times. Have I misunderstood?

Again at a glance, it's hard to see why you would descend into the any 
pattern since it accepts anything. All you care about is the namespace 
on the start element.

Bob Foster
http://xmlbuddy.com/

David Tolpin wrote:

 > 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/




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.