XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Compile a transformation description into a largenumber of very simple transformation operations?

See this thread from the xsl-list (2014):|

https://www.oxygenxml.com/archives/xsl-list/201403/msg00370.html

Now, more than 4 years later, one could say (in kidding-mode):

  1. Remove all XSLT 3 directives and instructions

  2. Remove all XSLT 2 directives and instructions

  3. Do the removals suggested in the above thread

And a question: Why XSLT? One could choose to do all operations in pure XPath 3.x -- and may be just use the <xsl:evaluate> instruction to execute this ? :)


Cheers,
Dimitre

On Thu, Dec 20, 2018 at 7:50 AM Costello, Roger L. <costello@mitre.org> wrote:

Hi Folks,

This is a brainstorm, research kind of question …

As you know, every action that a user takes on a computer follows the same paradigm: Code gets compiled into a large number of very simple machine instructions (add, subtract, compare, load, store, etc.) which are then executed at blazing speeds by the computer’s processor.

Can that paradigm be emulated, at a higher level, to translate one XML vocabulary to another?

Allow me to explain …

Is there some small set of very simple operations that, when combined, can translate any XML vocabulary to another?

You might argue that XSLT is designed for transformations, which is true. But I would argue that the set of operations provided even by XSLT 1.0 is hardly akin to the level of simplicity provided by machine operations. I am thinking of a much simpler and smaller set of operations than XSLT provides. Perhaps a small subset of XSLT?

I envision a compiler that takes as input a declarative description of the rules for translating XML vocabulary 1 to XML vocabulary 2. The compiler outputs a large number of very simple transformation operations.

That collection of operations is given to a processor (perhaps an XSLT processor?) along with data (i.e., an instance of XML vocabulary 1).

The result of processing is an instance of XML vocabulary 2.

In other words, it follows the same paradigm as ordinary computer usage – compile code to a large set of very simple operations – but at a much higher level.

The benefit? The same benefit as with ordinary computer usage: Users can work at higher levels of abstraction. Possibly the “transformation description” box shown above could be much more declarative than, say, a full-fledged XSLT program that transforms vocabulary 1 to vocabulary 2.

Have you thought of such things? Is there a small subset of very simple XSLT operations that can perform any transformation? Stated another way, is there a small subset of very simple XSLT operations that is “Turing Complete”? Have you ever created a compiler to output a large number of these very simple transform operations?

/Roger



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all
------------------------------------
Quality means doing it right when no one is looking.
-------------------------------------
You've achieved success in your field when you don't know whether what you're doing is work or play
-------------------------------------
To achieve the impossible dream, try going to sleep.
-------------------------------------
Facts do not cease to exist because they are ignored.
-------------------------------------
Typing monkeys will write all Shakespeare's works in 200yrs.Will they write all patents, too? :)
-------------------------------------
Sanity is madness put to good use.
-------------------------------------
I finally figured out the only reason to be alive is to enjoy it.
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS