Looking up key-value pairs in JSON objects from XSLT
I have an XSLT implementation that hyphenates strings following latex patterns, i.e. inserts soft hyphens in strings. I call this function like this: <xsl:template match="p[lang('en')]/text()"> <xsl:analyze-string select="." regex="w+"> <xsl:matching-substring> <xsl:value-of select="fn:hyphenate(., '', 'en')"/> <xsl:non-matching-substring> <xsl:value-of select="."/> </xsl:non-matching-substring> </xsl:analyze-string> </xsl:template> Now,…