xsl-list
[Top] [All Lists]

[xsl] How do you prove that your XSLT programs are correct?

2022-04-14 11:08:21
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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>