[HN Gopher] BaseX - a highly W3C compliant XQuery processor
___________________________________________________________________
BaseX - a highly W3C compliant XQuery processor
Author : smartmic
Score : 78 points
Date : 2024-08-27 14:04 UTC (4 days ago)
(HTM) web link (docs.basex.org)
(TXT) w3m dump (docs.basex.org)
| oever wrote:
| BaseX is great. It's impressive what the single developer has
| achieved and improved over many years already. At NLnet, my
| employer, we use it to generate our mostly static website. Since
| it produces well-formed XML as output, there is no possibility of
| undetected nesting errors due to typos. XQuery is a functional
| language so it's simpler to reason about the code: variables are
| immutable.
|
| An area of improvement would be type checking. XQuery allows
| defining types via XML Schema, but there is no mature open source
| implementation that can check the types on each function. BaseX
| does support validation ad-hoc by calling a validation function
| explicitly.
| thechao wrote:
| I've been a fan of XML tech for ~years~ decades (dang). But,
| let's be honest, _most_ of this stuff should 've been thought-
| technology, not a fixed implementation. Like, I have a
| decorator based Python library that passes values by-copy,
| enforcing a sort of local immutability, and also offering all
| of the pattern-matching capabilities of XSL, but _in Python_. I
| can extend the pattern matching with arbitrary Python
| functions.
| superdisk wrote:
| I used this a while back to do some conversion of XML into JSON
| data, it actually supports rendering JSON as well. Surprisingly
| flexible and ergonomic language, it's kind of a weird beast.
___________________________________________________________________
(page generated 2024-08-31 23:01 UTC)