[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Expand XPath with a few abstractions and use it as
On 29.06.2022 13:12, Roger L Costello costello@xxxxxxxxx wrote:
Hi Folks,top of Fortran.
Instead, you have to use labels and gotos. The resulting (spaghetti-like) program imposes a large cognitive load on the developer and maintainer. Writing Fortran programs is unreasonably difficult and error prone.
the while loop. The abstractions make it much easier to write and maintain programs. A preprocessor converts the Ratfor into equivalent Fortran. For example, the preprocessor converts the while-loop into equivalent labels and gotos.
syntax imposes a substantial cognitive load on the developer and maintainer. This makes implementing large and/or complex programs unreasonably difficult and error prone.
for programming large and/or complex programs. If XPath were enhanced with a few things, such as apply-templates (as was discussed a couple weeks ago), it would make for a programming language that is easier to write and maintain programs.
preprocessor that converts "expanded-XPath" into equivalent XSLT/XPath. Has anyone done this -- created an expanded-XPath and a preprocessor which converts expanded-XPath into equivalent XSLT/XPath? I think people in the past tried to reduce the alleged verbosity but I don't think such attempts prevailed. As for not using an XML syntax but "expanding" XPath, XQuery can certainly be considered as such a thing, with a few exceptions of string literals any XPath 3.1 expression is also an XQuery 3.1 expression but XQuery has more flexible and powerful FLOWR, grouping, windowing, all not in an XML syntax. If you need recursive template matching you can write your own recursive functions with switch/typeswitch.
|
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
|