I had a similar problem. The trunk latch on the way out, the micro switch wasn't closing and the trunk light was staying on. The design of the trunk latch is pony (plastic hook) - hence the "do not slam" warning tag. This may not be you problem but it's a good place to start.
There is a Cherry submicroswitch attached the the trunk latch. This switch controls the light and the instrument indicator. It also activates the alarm.
ks430 trunk latch
If the key won't open the trunk of a 1997 Jaguar XJ6 but the electrics are functioning, you can try using the valet switch inside the glove compartment to release the trunk latch. Alternatively, you can access the trunk through the rear seats by folding them down, which may allow you to reach the trunk release mechanism directly. If these methods don't work, consider consulting a professional locksmith or a Jaguar specialist for assistance.
my trunk latch won't work what could be wrog
There is a handle behind the passenger seat. It operates a cable that connects to the trunk latch. Make sure it is not locked and pull it out. The trunk should open. If it won't pull out it is probably locked and will have to be unlocked first. Hope this helps.
Unplug the wires going to the trunk latch.
To fix a trunk latch that is stuck open, the teeth on the lock may have to be adjusted so the trunk will close. It is also possible that the cable for the trunk latch is broken. To fix the gas cap door latch may require a little bending and adjusting with a pair of pliers.
With a Large Hammer
It means that the car beieves that the boot/trunk is open. Either the switch is broken or the latch hasn't closed properly.
If the remote for your 1997 Chrysler LHS isn't working and the trunk won't close or latch, you can try manually opening the trunk and inspecting the latch mechanism for any obstructions or damage. Check the trunk release cable and ensure it's functioning properly. You can also use the key to manually unlock the trunk and see if that helps engage the latch. If the problem persists, consider consulting a mechanic for further assistance.
I would say that if you are having this problem most likely the latch has been slightly bent in or out, or the vehicle has been wrecked in the past. Also, the alignment of the trunk could be off. (wrecked) But a trunk latch can get damaged from slamming it over and over. Also, if it is a used car, you never know what has been done to the vehicle. Maybe someone locked their keys in the trunk and broke the latch in the past. Or, maybe someone broke into the car when it was previously owned and the latch has been replaced. You never know. People do strange things.