[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Does the new structure include the same text conte
Would a character count of output (stripped white space) suffice? regards On Fri, 22 Jan 2021 at 12:11, Paul Tyson phtyson@xxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > I had a similar challenge some years back. I met it with schematron. > > Write a 2nd stylesheet that generates schematron rules describing the expected structure and content of the output files. Run these against the output. > > Of course there is a risk that your schematron rules will be incomplete in the same or different manner than your transformation stylesheet. But they will be able to check for known errors, such as the one you have already discovered. > > Regards, > > --Paul > > On 1/22/21 5:29 AM, ian.proudfoot@xxxxxxxxxxx wrote: > > Hi everyone, > > C/B?B= > > I am working on a project to convert several thousand SGML files (S1000D 1.7) into a more recent XML version (S1000D 4.1). My finished XSLT style sheet does the job that is expected. C/B?B=However during the development I did run into a problem where an error in the stylesheet allowed the output to pass schema validation but by omitting some content! For me thatC/B?B=s very bad news and I was lucky to notice it. C/B?B=Ultimately the final output will be verified by the subject matter experts, but I really donC/B?B=t want to give them any reason to doubt the reliability of the conversion. > > C/B?B= > > This got me thinking about ways to verify the output text content against the input despite significantly different structure. Is there an established way to do that? If so what is it called and how well does it work? > > Perhaps itC/B?B=s something that I should build into the XSLT as it is written? Or perhaps it could be run as a post process batch comparison operation? > > C/B?B= > > My initial thought is to output normalized text from input and output and compare the resulting text filesC/B?B= C/B?B= > > C/B?B= > > IC/B?B=ve searched the archives, but I probably donC/B?B=t know the correct terminology to get any useful resultsC/B?B= > > C/B?B= > > Thanks in advance for all responses. > > Ian > > C/B?B= > > Ian Proudfoot > > Bembridge > > Isle of Wight > > United Kingdom > > C/B?B= > > XSL-List info and archive > EasyUnsubscribe (by email) > > XSL-List info and archive > EasyUnsubscribe (by email) -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|