0

So I've been trying to put the United States Code (offered here from the U.S. House of Representatives) so that I can hopefully get it to a point where I can put it into an ebook format (either ePub or for Kindle). The page also provides for the schema, but no matter what I do, it always seems to have issues opening up the document. Any ideas on getting this to be accessible in a format that preserves the hierarchy?

The error I get is:

The XML file usc26.xml cannot be opened because there is no available data view (XSLT).

It also gives me a line (3) and column (308) for the location of the problem.

  • What program(s) are you opening the XML with? – music2myear Feb 8 '18 at 20:10
  • I've tried using a couple, such as Word, TextWrangler, & Atom. I don't know if it's the size of the document (I'm trying to download Title 26... the Internal Revenue Code). At this point, I thought opening it in Word might be the best way to convert the document to an ePub (because of all the tables and hierarchies), but I get a "The XML file usc26.xml cannot be opened because there is no available data view (XSLT), & then it gives me a line (3) and column (308) for the location of the problem. So I'm wondering if there is an issue with the css file reference. (Terribly sorry for noobishness.) – JuBe Feb 8 '18 at 20:45
  • 1
    Please put that error text directly into your question. – Twisty Impersonator Feb 8 '18 at 21:20
  • I was able to open usc26.xml just fine in a Text Editor. It's about 50MB uncompressed, which shouldn't tax most computers at all. Have you tried Notepad? Have you tried downloading a new copy? Also, you do know what XML is, right? It's a markup language and only if you have an accompanying stylesheet will it be friendly to human eyes. XML is about getting information in a consistent manner between different programs. – music2myear Feb 8 '18 at 21:44
  • So at this point, would I be better off just teaching myself the syntax of stylesheets (which is CSS, correct)? Because for some reason, it seems like that is where the hick-up in all of this is occurring. – JuBe Feb 11 '18 at 22:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.