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] Globbing versus Regular Expressions (was: Regular Associat

[ Lists Home | Date Index | Thread Index ]
  • To: "David Tolpin" <dvd@davidashen.net>,<xml-dev@lists.xml.org>
  • Subject: RE: [xml-dev] Globbing versus Regular Expressions (was: Regular Associations)
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Mon, 5 Jan 2004 19:01:34 -0800
  • Thread-index: AcPTbv4VOj5xXzX+ROyuEe74KZjegAAkgGZA
  • Thread-topic: [xml-dev] Globbing versus Regular Expressions (was: Regular Associations)

>-----Original Message-----
>From: David Tolpin [mailto:dvd@davidashen.net] 
>Sent: Monday, January 05, 2004 1:30 AM
>To: xml-dev@lists.xml.org
>Subject: [xml-dev] Globbing versus Regular Expressions (was: 
>Regular Associations)
>
>- it does a different thing: XPath is a language for 
>addressing parts of
>  a document, Relax NG, and the way it is used in ARX, the 
>utility we are discussing,
>  assesses that a document matches a regular pattern. 

If you wrap boolean() around your XPath expressions and limit them to
expressions that evaluate to a node set then you have the same thing. 

>Note 1. However, I would find an XSLT-like language  that 
>provides XML regular expressions (similar to Relax NG) for 
>matching and selection more useful and convenient, if 
>occasionally less verbose, than XSLT; if string regular 
>expressions (which are peripheral to the area of XSLT) were 
>added, why XML regular expressions were not?

Sounds like XQuery. 

>Note 2. Actually, I mentioned in the original message that my 
>first thought had been to use XSLT for this purpose (and I 
>meant XPath, of course), and that I had realized later that 
>Relax NG is more appropriate. However, it was written at the 
>very end of the message.

Missed that part of your message. 

--
PITHY WORDS OF WISDOM 
To err is human but when the eraser wears out before the pencil, you're
carrying things too far.


This posting is provided "AS IS" with no warranties, and confers no
rights.  




 

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

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