{"title":"Multiple String Comparison in XSLT with tan:collate()","authors":"Joel Kalvesmaki","doi":"10.4242/balisagevol27.kalvesmaki01","DOIUrl":null,"url":null,"abstract":"In this article I introduce tan:collate(), an XSLT function for comparing three or more strings. Collated multiple string comparison is a difficult problem that merits experimentation with alternative methods. tan:collate() approaches the task in three different ways. Two of those methods involve a sequence of pairwise comparisons, with each comparison grafted into a guide tree. The third method applies the staggered-sample approach of tan:diff() to multiple strings, to detect a common superskeleton, before attempting to refine results. This paper situates the problem of multiple string comparison in the context of textual criticism, proposes a general output format and test suite, and presents measured results for the quality and performance of tan:collate() against an example test suite. Released as part of an open-source function library, tan:collate() enables developers to incorporate robust text comparison directly into XSLT applications.","PeriodicalId":89326,"journal":{"name":"Balisage series on markup technologies","volume":"1 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Balisage series on markup technologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4242/balisagevol27.kalvesmaki01","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
In this article I introduce tan:collate(), an XSLT function for comparing three or more strings. Collated multiple string comparison is a difficult problem that merits experimentation with alternative methods. tan:collate() approaches the task in three different ways. Two of those methods involve a sequence of pairwise comparisons, with each comparison grafted into a guide tree. The third method applies the staggered-sample approach of tan:diff() to multiple strings, to detect a common superskeleton, before attempting to refine results. This paper situates the problem of multiple string comparison in the context of textual criticism, proposes a general output format and test suite, and presents measured results for the quality and performance of tan:collate() against an example test suite. Released as part of an open-source function library, tan:collate() enables developers to incorporate robust text comparison directly into XSLT applications.