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] Declarative document transformation?

Hi Hans-Jürgen,

It does make sense.

You could think of your "opsheet" as an XProc step
There are quite a few XProc steps already defined that would serve as "opsheet" 
p:rename, p:add-attribute, p:replace, p:delete, just to name a few
not too hard to add custom ones yourself
and for more complex operations, p:xslt can be added in the pipeline at will

https://spec.xproc.org/master/head/steps/#req-steps

Hope this helps

Met vriendelijke groeten,
Best regards,

Geert Bormans

----- Op 2 dec 2021 om 19:32 schreef Hans-Juergen Rennau <hrennau@yahoo.de>:

Hello,

XML technology excellently supports two fundamental ways how to think about document transformation - push style (XSLT, template based), pull style (XQuery, node constructors with embedded expressions).

Much less important, but perhaps not completely without interest in certain scenarios, may be yet another way - I call it "op style", for want of a better word: transformation as a pipeline of simple operations (e.g. grouping, flattening, deepening, moving, merging, separating, ...). Each operation might be defined in a purely declarative way - operation name plus parameters. Instead of writing code, one might implement simple transformations (of a certain type) by just writing an "opsheet", a flat sequence of operation descriptors. It could be done by people without technical skills, and it might also be useful for technical folks because removing the need to write code, thus saving time. And nice support by IDEs can be imagined. Another aspect - when controlling complex systems, the explicitness of opsheets might be helpful.

My question - does this make sense to you? Do you perhaps know projects or products which offer something similar?

Kind regards,
Hans-Jürgen



[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