473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

questions and recommend books about refactoring of xml-schematas and the transformation of xml-documents

Hello everybody :-)
Next year I`ll write my diploma in computer science for business (It`s
a degree in Germany) and I`ve some questions about the topic. The
diploma will handle about refactoring of xml-schemes and a
transformation of all instances (the xml-documents) with XSLT-scripts.

The idea of the diploma is, that in nearly every company xml schemes
are used. And (like Heraklit said "Panta rhei" - everthing is flowing)
the business processes in companys could be changed. If an xml- scheme
has to be changed (refactored), what to do with all instances of these
schemes?
Is it possible to create an XSLT-script that transforms all instances
of the old scheme into instances of the new, refactored scheme? The
diploma will handle about questions like what information you need for
the transformation, what operations are possible for the
transformation, etc.

A simple example is to refactor an xml scheme with one element and to
transform an attribute of the element A to a different element in the
content on the first position of the element A.

I`ll write the diploma next year and all questions are only an
investigation on the topic.

Can anybody recommend some good books about the refactoring of
something like this? I`ve read the book "XML in a Nutshell" and
"Refactoring" (Martin Fowler), but I couldn`t find any information
about this.

What do you think about the topic? Do you see there any big problems ?
I pondered about the topic the last weeks and I think it`s ok, without
big problems. After the analysis of the transformation I`ll design and
implement a tool for the refactoring of these.

Thanks and sorry for my bad english,

Hendrik Leder

PS: if you find mistakes in my text, pleas tell me, so I can correct
them to improve my english :-)

Oct 20 '06 #1
2 1795

HendrikLeder wrote:
Is it possible to create an XSLT-script that transforms all instances
of the old scheme into instances of the new, refactored scheme?
No. Isn't this what we spent 2000 discovering we couldn't do?

There are two problems: You can't do it. If you could do it, it's A
Hard Problem to write the XSLT that does do it for you. Both of these
problems are too hard to do practically, for typical examples.

The reasons it's hard are two-fold:

Firstly, XML and XSLT work with opaque nodes of data held in an XML
structure. Although XSLT transforms this XML structure quite easily,
it's hard to work with the data nodes themselves. You _can_ operate on
the nodes too, although XSLT isn't ideal for this - even simple string
manipulation is painful. If dimensions in a node need translation from
imperial to metric measurements then that's implementable in XLST (i.e.
it can and has been done) but it's not a task that XSLT is optmised
for.

Secondly, and more fundamentally, XSLT can only map around XML
structures. It has no conceptual understanding of their underlying
meaning. Making a process for this needs an expression language that
can link an ontological understanding of a node to the concept behind
it (this is more than a mere schema). It also needs some automatic tool
that can take these ontologies and generate appropriate XSLT from them.
More frequently, it recognises that two XML elements both called
"reason-code" and with XML Schema units that dimension them as "length
[feet]" and "length [metres]" may yet be derived from fundamentally
different ontological domains, despire their evident similarity. If the
_concepts_ don't overlap cleanly and equally, then simple structural
transforms just aren't capable of achieving what's needed.

There's a vast body of published work on this topic over the last few
years. Make sure you look at "Schematron" and "OWL" too.

Oct 20 '06 #2
@ Andy Dingley
Firstly, thanks for you answer :-)

I only post, because I need time to think (and also to discuss with
other persons) about your answer. I`ll give you another answer as quite
as possible :-)

Oct 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Campo | last post by:
This question may have been asked many times in the past, but I am still going to bring it up. What is your favourite book(s) that you read to learn c++? Or what is your favourite site that you...
3
by: Michael | last post by:
Guys, I've just finished reading Design Patterns and have been over whelmed by how clever some people are :-) Are there any other books on a similar vein worth reading, Managing large scale...
56
by: Cherrish Vaidiyan | last post by:
Frinds, Hope everyone is doing fine.i feel pointers to be the most toughest part in C. i have just completed learning pointers & arrays related portions. I need to attend technical interview on...
15
by: WStoreyII | last post by:
First Question: Due to the hours of my job i can not go to school right now and i can't afford online classes. My questions is that i have learned a lot about .net and i am pretty sure that if...
7
by: Wanna be MC | last post by:
Hi all, I had a question about this exam. Well, actually the books they recommend and not the actual exam. Here are the book ISBNs 0-7356-1925-5 0-7356-1236-6 0-7356-1927-1 My question is...
12
by: Eps | last post by:
I am starting a new job that involves programming in c# and using ASP.net. I have some experience with c# but have little knowledge of ASP, I would like to get a book about each so I can get some...
9
by: jay | last post by:
Hi, I'm totally new to Python and was hoping someone might be able to answer a few questions for me: 1. What are your views about Python vs Perl? Do you see one as better than the other? ...
6
by: Solo.Wolve | last post by:
I've just finished the K&R c, And begin to study c++ myself,so can anyone give me some advice?such as some books to read,and something to notice? Thank you very much.
22
by: gustum | last post by:
Im graduating in the coming december. Anyone pls guide me where i can get c++ interview questions. I shall be very thankful to you if you provide me good link so any stuff if you have regarding...
10
by: dolphin | last post by:
Hi All. I have learn the C++ for sometime. Now I want to learn some advance topics. Can someone recommend some advance topic?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.