Project

Profile

Help

Bug #6498 » CallFunctionViaTransform.xslt

Adrian Bird, 2024-08-08 12:50

 
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="my-ns">

<xsl:output method="text" />

<xsl:variable name="transformMap" as="map(xs:string, item())">
<xsl:map>
<xsl:map-entry key="'initial-function'" select="QName('my-ns', 'my:compare')" />
<xsl:map-entry key="'stylesheet-location'" select="'FunctionCompare.xslt'" />
<xsl:map-entry key="'function-params'" select="array{('a','b')}" />
</xsl:map>
</xsl:variable>

<xsl:template name="xsl:initial-template">
<xsl:sequence select="transform($transformMap)?output" />
</xsl:template>
</xsl:stylesheet>
(2-2/3)