How to add data into xslt array from outside the tag..
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:array="http://www.w3.org/2005/xpath-functions/array" exclude-result-prefixes="#all"
version="3.0">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:param name="input"/>
<xsl:variable name="newline" select="' '"/>
<xsl:template match="/" name="xsl:initial-template">
<xsl:variable name="input-as-map" select="parse-json($input)" as="map(*)"/>
<root>
<!-- storing all the PERSONNUMBER present in the ibop -->
<xsl:variable name="item-array" as="element()*">
<Item>A</Item>
<Item>A</Item>
<Item>A</Item>
<Item>b</Item>
</xsl:variable>
</root>
</xsl:template>
</xsl:stylesheet>
Here I'm adding the values inside an variable within the opening and closing <xsl:variable> ..
So how to add values into an item-array based on name attribute(outside an variable tags)..
like how we do in other programs..emphasized text