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

Re: RE: The remarkable similarities between XSLT and Flex/Lex

  • From: Marcus Reichardt <u123724@gmail.com>
  • To: Roger L Costello <costello@mitre.org>
  • Date: Sun, 26 Jun 2022 18:52:44 +0200

Re:  RE: The remarkable similarities between XSLT and Flex/Lex
> Am 26.06.2022 um 15:01 schrieb Roger L Costello <costello@mitre.org>:
> 
> There was also a strange
> unnecessary constraint on these expressions called "ambiguity", which
> *everybody* who wrote SGML software needed to understand, and so the idea of
> applying formal language techniques to SGML was inevitable.

Hmm, your anonymous source should've expanded on that; without proof or anything the claim of "unnecessary-ness" is void.

SGML has tag inference (can infer arbitrarily many start- and end-element tags) and moreover can expand short reference delimiters (arbitrary tokens not used a markup delimiters, including newlines and tabs/spaces) by context-dependendant replacement text (start- and end-elements typically). Determinism in content models helps a lot to make this even work, and as I hear, the same thing is being re-introduced as "Invisible XML", giving you a facility that was already there in 1986 ;)

Of course, with XML-style fully tagged markup, more relaxed models could be used, hence RelaxNG.

What is the argument here? That a Thompson construction for finite automata (as opposed to Glushkov/Antimirov derivatives) is more convenient for programmers since an off-the-shelve regexp lib can be used? Also, I don't quite understand the leap to pattern matching in XSLT; the only connection I can see is that in the early 2000s there were attempts to statically verify/type-check eg XPath expressions (over elements) ie decide whether those could yield non-empty results in the presence of DTD content model constraints. To the best of my knowledge, the results weren't convincing.

Best,
Marcus Reichardt
sgml.io




[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!

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.