Project

Profile

Help

Bug #4397 » saxonissues.xsl

Priscilla Walmsley, 2019-11-27 17:41

 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:local="http://www.functx.com/local" xmlns:functx="http://www.functx.com" xmlns:array="http://www.w3.org/2005/xpath-functions/array" exclude-result-prefixes="#all" version="3.0">
<xsl:function name="local:is-array" as="xs:boolean">
<xsl:param name="results"/>
<xsl:sequence select="$results instance of array(*)"/>
</xsl:function>
<xsl:template match="/">
<test>
<xsl:sequence select="local:is-array( array:filter( ['ab', 'xy'], starts-with#2(?, 'a')) )"/>
</test>
</xsl:template>
</xsl:stylesheet>
(1-1/2)