Page tree
Skip to end of metadata
Go to start of metadata

<Script Name="">

  <Delete Node="/*/YearList/Data/Template" />

  <SetVariable Name="$(CurrentYear)">

    <DateTimePart Part="Year">

      <Value Culture="" Target="Date">Now</Value>

    </DateTimePart>

  </SetVariable>

  <SetVariable Name="$(Temp)">

    <Select Node="/*/YearList/Template" Aggregation="None" />

  </SetVariable>

  <Insert Into="/*/YearList/Data">$(Temp)</Insert>

  <Set Node="YearList/Data/Template[last()]/Year">

    <Value Culture="" Target="None">$(CurrentYear)</Value>

  </Set>

  <SetVariable Name="$(CurrentYear)">

    <Math Operator="Add">

      <Value Culture="" Target="Integer">$(CurrentYear)</Value>

      <Value Culture="" Target="Integer">1</Value>

    </Math>

  </SetVariable>

  <Insert Into="/*/YearList/Data">$(Temp)</Insert>

  <Set Node="YearList/Data/Template[last()]/Year">

    <Value Culture="" Target="None">$(CurrentYear)</Value>

  </Set>

</Script>



  • No labels