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

Re: How do you ensure that data is not altered/corrupt

Subject: Re: How do you ensure that data is not altered/corrupted in a transformation?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 May 2023 09:31:32 -0000
Re:  How do you ensure that data is not altered/corrupt
On 5/19/2023 10:37 AM, Roger L Costello costello@xxxxxxxxx wrote:
In certain domains loss of life may occur if data is altered/corrupted in
any way.

Suppose you write an XSLT program which transforms this:


<alt>12000 feet</alt>

to this:

<altitude>12000 feet</altitude>

How do you ensure that the data -- 12000 feet -- was not altered/corrupted
in the transformation?


What does altered refer to? If you make sure the XSLT copies the `alt` element's content to the result `altitude` element you can do that with e.g.

<xsl:template match="alt">

B <altitude>{.}</altitude>

</xsl:template>


What does "corrupted" refer to? That file IO fails to properly create the transformation result? Do you expect to catch such errors with XSLT?

For (processing/validation) pipelines (outside the system failure scope)
you can use XProc or XSpec, I would think, to test the value in some
result (step) is the same as the value in (some/the) input step.

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.