HackerPapers

arXiv:1912.10817cs.PL

Using Prolog for Transforming XML Documents

René Haberland

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

Proponents of the programming language Prolog share the opinion Prolog is more appropriate for transforming XML-documents as other well-established techniques and languages like XSLT. In order to clarify this position this work proposes a tuProlog-styled interpreter for parsing XML-documents into Prolog-internal lists and vice versa for serialising lists into XML-documents. Based on this implementation a comparison between XSLT and Prolog follows. First, criteria are researched, such as considered language features of XSLT, usability and expressibility. These criteria are validated. Second, it is assessed when Prolog distinguishes between input and output parameters towards reversible transformation.

arXiv comments
49 pages, 54 figures, 2 appendices
Journal reference
DOI
Subjects
cs.PLProgramming Languages cs.IRInformation Retrieval cs.SESoftware Engineering

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from Jul 2025 to Jul 2025.

Comments linking this paper, per year.

Discussed in comments1 thread

    • BTW, I decided I'd see if there was an XPath library for Prolog (once my favorite programming language, and with some conceptual/ algorithmic similarity to XSLT, I think, although XSLT has nothing like Prolog's backtracking). Turns out there is (at least) one…

      mcswellView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.