Here is another way to do this without having to expand your shapes:
Use Opacity Masks.
Similar to the way Masking works in Photoshop, you can define the visibility of objects by using the colours black or white (and every shade in-between!!).
In Illustrator each object – in your case a placed image – can have its own Opacity Mask:
Place your image.
In the ...
The stroke is dynamic and not a part of the shape itself. One solution could be to do the following:
Use Object > Expand Appearance to convert the stroke to paths.
Use Pathfinder > Unite to unite the original shape with the stroke.
Use Object > Compound Path > Make to convert all the individual smaller paths into one compund path.
Select the ...
It's based on the layer stacking order most of the time: the topmost object you have selected becomes the mask shape, and any other selected object(s) are the content that gets masked.
I believe there's an exception to this if the topmost object has an image fill. Then XD assumes you meant that to be the content and uses the other shape in the selection as ...
If you want the foil to appear on the lines, then I believe you do not want a clipping mask. You want an...
Place your foil image into Illustrator.
Copy your line artwork
Select the Foil and click the Make Mask button on the Transparency Panel (Window > Transparency)
Click the mask thumbnail on the Transparency panel
Paste -- You should see ...