Prepare the sweet pastry. In a medium bowl whisk flour with sugar and salt. Incorporate butter using a pastry blender, a fork or a pastry processor, until crumbs are formed. Add egg yolk, almond extract, and water and stir until incorporated.
Wrap the dough in plastic wrap, shape into a rectangle, and refrigerate for 1 hour.
On a lightly floured surface roll the dough to an 8x16 in (20x40cm) rectangle.
Line a 5x14 in (12X36cm) tart pan with the rolled dough and press the edges. Trim the excess dough. Prick the shell with a fork and refrigerate for 30 minutes.
Preheat oven to 350F (180C).
Line the shell with parchment paper and fill with pie weights or beans. Bake for 20 minutes.
Remove the parchment paper and weights and bake for 10 minutes more.
Let it cool slightly on a cooling rack.
Prepare the frangipane filling. In a large bowl mix butter with sugar until creamy. Incorporate eggs one at a time. Add vanilla extract and almond extract. Gently incorporate ground almonds and flour.
Spread a thin layer of apricot jam over the base. Spread the frangipane evenly and arrange the apricot slices on top pressing them slightly into the frangipane.
Bake at 350F (180C) for 25-30 minutes until golden. Remove from the oven and brush with warm apricot jam.
Let it cool before serving. Enjoy!