Im having an issue with XSLT 2.0 using java to return a list of multiple string values. Here is my approach
xmlns:fn="java:myFunction" //java function returning List<String>
<xsl:variable name="returnList" as="xsd:string*" select="fn:myFunction('inparam')" />
<element<xsl:value-of select="$returnList[1]"/></element> //This has 1 of the expected values
<element<xsl:value-of select="$returnList[2]"/></element> //This is empty but shouldnt be