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

Re: How to declaratively describe a mapping that invol

Subject: Re: How to declaratively describe a mapping that involves breaking a string apart and reassembling the parts with an additional symbol?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Mar 2024 15:51:48 -0000
Re:  How to declaratively describe a mapping that invol
> Bonus points if you can also answer this question:
>
> Computer Science Theory Question: If it is impossible to declaratively
express the above mapping, does that mean there is a limit to declarative
descriptions? Is the set of declarative descriptions smaller than the set of
procedural descriptions?
>

My computer science theory is very rusty, but I don't think that "declarative"
and "procedural" have formal definitions that you can appeal to.

A distinction you might make is between rules expressed in first order
predicate calculus, and rules that require recursion. But "first order
predicate calculus" doesn't prescribe a particular set of arithmetic or string
operators.

The expression

`<magneticVariationValue>concat(substring($magVar,2,3),'.',substring($magVar,
5,1))</magneticVariationValue>`

is only procedural in the sense that it is written in a Turing complete
language. If you regard it as being written in a language that is much smaller
than XPath, does that make it more declarative?

For a reductio ad absurdum, consider 2+2. Declarative or procedural?

Michael Kay
Saxonica

Current Thread

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