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

How do you prove that your XSLT programs are correct?

Subject: How do you prove that your XSLT programs are correct?
From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Apr 2022 16:08:14 -0000
 How do you prove that your XSLT programs are correct?
Hi Folks,

Scenario: You write an XSLT program that takes some input and outputs XML. You
want to be sure that your XSLT program is correct.

As I see it, there are two ways to help ensure the correctness of an XSLT
program :

1. Pepper the XSLT program with assert statements, using xsl:assert.

2. Create a second XSLT program that queries the XML that was generated by the
first XSLT program. This second XSLT program contains a series of XPath
expressions to check various parts of the XML.

Which of those do you use? Or do you use both? Or do you use something else?

How do you ensure the correctness of your XSLT programs?

/Roger

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.