How to convert XML files to PDF files?

Can I convert the Google Style guide XML to PDF files?

  • Google provides many programming documents; the source code is https://code.google.com/p/google-styleguide/. Can I convert these documents to PDF files? How can I do that? I googled, but haven't found any good way to do this. I want to convert the http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml to PDF.

  • Answer:

    You may want to read about XML and http://www.w3.org/TR/xslt. You should be able to just download the entire folder (i.e., with the .xml, .css and .xsl files), and then open the XML document with a browser. All major web browsers should be able to transform the XML using the XSL and CSS files provided, into a nice looking page. I've found Chrome to be buggy with local XML files, but opening the style guide XML in the Google Code repository browser (in raw mode) worked as well. You can then print from your browser to PDF, using a PDF generator of your choice.

iAsk at Super User Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.