|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: are the regular expressions over xml structure?
I personally would love to see xml level regex in XQuery and XSLT. The examples are quite concise and readable. Just noodling, would it be possible to translate some forms of regex into XPath ? Or would XPath (and XSLT match expressions) need deep enhancements. For XPath I could imagine some regex's being translatable. For Match expressions maybe not. ---------------------------------------- David A. Lee dlee@calldei.com http://www.xmlsh.org > -----Original Message----- > From: Oleg Parashchenko [mailto:olepar@gmail.com] On Behalf Of Oleg > Parashchenko > Sent: Monday, July 02, 2012 8:29 AM > To: Michael Kay > Cc: xml-dev@lists.xml.org > Subject: Re: are the regular expressions over xml structure? > > Hello Michael, > > On Fri, 29 Jun 2012 13:48:02 +0100 > Michael Kay <mike@saxonica.com> wrote: > > ... > > Well, there are certainly cases where it would be nice to match a > > sequence of nodes that matches some pattern, rather than only matching > > individual nodes: a generalization of xsl:for-each-group. > > Exactly. Thanks a lot for an xslt-style code snipplet and the link to the > positional grouping paper. > > Meanwhile, I've remembered a more demonstrative example then h1/p > grouping: > > "element(image), element(caption), element(table[some condition])" > > an image with the caption and a legend table is to be grouped. In my > xslt stylesheets, the grouping code is far away from readability and > maintainability. That's why I'm looking for a better approach. > > > Michael Kay > > Saxonica > > > -- > Oleg Parashchenko olpa@ http://uucode.com/ > http://uucode.com/blog/ XML, TeX, Python, Mac, Chess > > ________________________________________________________________ > _______ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@lists.xml.org > subscribe: xml-dev-subscribe@lists.xml.org > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php >
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








