Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:saxon="http://saxon.sf.net/"
exclude-result-prefixes="#all" expand-text="yes">
<xsl:mode on-no-match="shallow-skip" streamable="yes"/>
<xsl:output indent="yes"/>
<xsl:template match="/*">
<xsl:for-each select="item">
<xsl:result-document href="item-{@id}.json" method="json"
indent="yes">
<xsl:sequence select="array {* ! array {. => tokenize()}}"/>
</xsl:result-document>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Code: Select all
! array {. => tokenize()}}
The same happens in the XQuery/XPath builder with that expression
Code: Select all
array {* ! array {. => tokenize()}}