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

Re: Specification of a transform.

Subject: Re: Specification of a transform.
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 9 Sep 2013 11:09:02 +0100
Re:  Specification of a transform.
I'm not sure if I've interpreted you correctly, but Phil's reply seems to
interpret your "no hierarchical simple relationship" as the key phrase here,
interpreting it as meaning that a multi-phase transformation is needed.

In other words, I think Phil is assuming that your "no hierarchical simple
relationship" is equivalent to saying that in terms of Jackson Structured
Programming

http://en.wikipedia.org/wiki/Jackson_structured_programming

there is a "structure clash" between the input and output schemas; and he
follows JSP by recommending:

"If a structure clash is found, it is usually resolved by splitting the
program into two parts, using an intermediate data structure to provide a
common structural framework with which the two program parts can
communicate."

Unfortunately I don't have copies of Michael Jackson's books on JSP, but I
recall that he goes into considerable detail analysing the types of structure
clash that can arise and the techniques for dealing with them. This work was
all done in the 1970s in the context of processing hierarchical files on
magnetic tape, but it could do with a dusting off and re-interpretation in
terms of XML, especially for streamed transformations.

However, there are other parts of your problem statement where I simply don't
know what you are talking about. Where do "literals" come into it, for
example?

Michael Kay
Saxonica

On 9 Sep 2013, at 08:42, davep wrote:

> Given schema A as input XML. Schema B as XML output.
>  Assume no hierarchical simple relationship.
>  Assume mapping of values needed from input values to output values.
>  Assume literals are needed.
> How do (might) you specify the required transform?
> How do (might) you validate that instance A has been correctly transformed
to instance B, assuming input and output are both valid to the schemas.
>
> Not something I've seen mentioned on this list?
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk

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.