You should install XP after 98 since XP would detect 98 presence and then modify the boot loader so that you can select the Appropraite operating system during boot up.
If you install 98 later, you will be able to boot into 98 only. You will need a Boot Loader. Many years ago i used a very nice GUI based Boot Loader called XOSL