title: how to fix the XSLT 3.0 maps issue?
body: <p>I am taking an XML file as input which contains the employee data and the mapping values i.e. Job Family Id and Job Family Name. So when an employee has a matching Job Family Id then we are replacing the Job Family name in the Worker_Data and rest of the elements in the Worker_Data is same. So I used the Identity match and then called the element where the value needs to replace. But it is giving me the blank for the Job Family name.</p>
  
  <p>I have tried the below XSLT code to create the map and called the same for the Job Family ID match. It is just giving me the blank nothing else. Not getting clearly what I am missing. If any of you can give me a hint on what is going wrong that will be really helpful for me.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wd="urn:com.workday/bsvc" exclude-result-prefixes="xs" version="3.0"&gt;
  
      &lt;xsl:mode streamable="no" on-no-match="shallow-skip" use- accumulators="JobFamilyLookup CurrentLookupValue" /&gt;
  
      &lt;xsl:output method="xml" /&gt;
  
      &lt;xsl:accumulator name="CurrentLookupValue" as="xs:string" initial- value="''" streamable="no"&gt;
          &lt;xsl:accumulator-rule match="wd:JobFamilyID/text()" select="string()" /&gt;
      &lt;/xsl:accumulator&gt;
  
      &lt;xsl:accumulator name="JobFamilyLookup" as="map(xs:string,xs:string)" initial-value="map{}" streamable="no"&gt;
          &lt;xsl:accumulator-rule match="wd:JobFamilyName/text()" select="map:put($value, accumulator- 
      before('CurrentLookupValue'),string(.))" /&gt;
      &lt;/xsl:accumulator&gt;
  
      &lt;xsl:strip-space elements="*" /&gt;
  
      &lt;xsl:template match="@*|node()"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:apply-templates select="@*|node()" /&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="wd:Job_Family_ID"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:value-of select="accumulator-before('JobFamilyLookup') ( 
          normalize-space( wd:Job_Family_ID ) )" /&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="wd:JobFamilyGroupDetails"&gt;
  
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Input:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;wd:test xmlns:wd="urn:com.workday/bsvc"&gt;
  &lt;wd:Worker_Data&gt;
      &lt;wd:EmpID&gt;50001&lt;/wd:EmpID&gt;
      &lt;wd:Job_Title&gt;Global Talent Director&lt;/wd:Job_Title&gt;
      &lt;wd:Job_Family_ID&gt;TAL_TALENT_ACQUISITION&lt;/wd:Job_Family_ID&gt;
  &lt;/wd:Worker_Data&gt;
  &lt;wd:Worker_Data&gt;
      &lt;wd:EmpID&gt;50000&lt;/wd:EmpID&gt;
      &lt;wd:Job_Title&gt;Executive Assistant&lt;/wd:Job_Title&gt;
      &lt;wd:Job_Family_ID&gt;ADMIN_EXECUTIVE_ASSISTANT&lt;/wd:Job_Family_ID&gt;
  &lt;/wd:Worker_Data&gt;
  &lt;wd:JobFamilyGroupDetails&gt;
      &lt;wd:JobFamilyDetails&gt;
          &lt;wd:JobFamilyID&gt;ADMIN_EXECUTIVE_ASSISTANT&lt;/wd:JobFamilyID&gt;
          &lt;wd:JobFamilyName&gt;ADMIN - Executive Assistant&lt;/wd:JobFamilyName&gt;
      &lt;/wd:JobFamilyDetails&gt;
      &lt;wd:JobFamilyDetails&gt;
          &lt;wd:JobFamilyID&gt;TAL_TALENT_ACQUISITION&lt;/wd:JobFamilyID&gt;
          &lt;wd:JobFamilyName&gt;TAL - Talent Acquisition&lt;/wd:JobFamilyName&gt;
      &lt;/wd:JobFamilyDetails&gt;
     &lt;/wd:JobFamilyGroupDetails&gt;
  &lt;/wd:test&gt;
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;wd:test xmlns:wd="urn:com.workday/bsvc"&gt;
  &lt;wd:Worker_Data&gt;
      &lt;wd:EmpID&gt;50001&lt;/wd:EmpID&gt;
      &lt;wd:Job_Title&gt;Global Talent Director&lt;/wd:Job_Title&gt;
      &lt;wd:Job_Family_ID&gt;TAL - Talent Acquisition&lt;/wd:Job_Family_ID&gt;
  &lt;/wd:Worker_Data&gt;
  &lt;wd:Worker_Data&gt;
      &lt;wd:EmpID&gt;50000&lt;/wd:EmpID&gt;
      &lt;wd:Job_Title&gt;Executive Assistant&lt;/wd:Job_Title&gt;
      &lt;wd:Job_Family_ID&gt;ADMIN - Executive Assistant&lt;/wd:Job_Family_ID&gt;
  &lt;/wd:Worker_Data&gt;
  &lt;/wd:test&gt;
  </code></pre>