You can find the sources when you go to the link "view online" which will redirect you to the
http://cnx.org website to all the sources (OpenStax was Connections/CNX in the past). It includes all HTML/XML, images and special styling. Here an example for the algebra book (scroll down to downloads):
https://cnx.org/contents/CImQfPDv@3.11:GfaWl1GG@4/Introducti...
Actually they also produced epub in the past (disclaimer: I worked for them in the past) and I'm sure you can get epub versions from them if you contact them.