Subject: Re: [xsl] Does the new structure include the same text content? From: "Paul Tyson phtyson@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 22 Jan 2021 12:11:08 -0000 |
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, > > 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. o?=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 thato?=s very bad news and I was lucky to notice it. > o?=Ultimately the final output will be verified by the subject matter > experts, but I really dono?=t want to give them any reason to doubt the > reliability of the conversion. > > 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 ito?=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? > > My initial thought is to output normalized text from input and output > and compare the resulting text fileso?= > > Io?=ve searched the archives, but I probably dono?=t know the correct > terminology to get any useful resultso?= > > Thanks in advance for all responses. > > Ian > > Ian Proudfoot > > Bembridge > > Isle of Wight > > United Kingdom > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1043515> > (by email <>)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Does the new structure in, Liam R. E. Quin liam | Thread | Re: [xsl] Does the new structure in, Dave Pawson dave.paw |
Re: [xsl] Does the new structure in, Imsieke, Gerrit, le- | Date | Re: [xsl] Does the new structure in, Michael Kay mike@xxx |
Month |