How do I print XML Document?

New to XML in general and have never had to use in a print application.  I need to be able to print this XML file formatted to the specifications of the stylesheet.  I'm assuming based on my limited research that this stylesheet used in the document is designed to be used in printing.

I can of course open the document to see what it should sort of look like in a browser.

I'm wondering basically if I'm missing something here and is there a specific application or process to print an XML document.

Sorry if I'm confusing... I'm confused.

Thanks and Regards,
Dan

Below is the beginning of the document.  The stylesheets are public, but I'm leaving out the actual guts of the document.

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
<document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://www.accessdata.fda.gov/spl/schema/spl.xsd">

Open in new window

dyoung520Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dyoung520Author Commented:
I do know I can print it from the browser!  Just wondering if that is the best "format" I can get with it, page breaks etc.
VenabiliCommented:
>I'm wondering basically if I'm missing something here and is there a specific application or process to print an XML document.

Not really :) I print mine as normal text documents... Some people print from editors that have enough colours to make it more readable. Some use browsers

Now - technically if you want to make the things beautiful and so on, you have a few choices. I had been using xsl-fo: http://www.xml.com/pub/a/2002/10/09/xslfo.html - if you know what you are doing, it is an easy to use format.
Another option would be CSS: http://www.xml.com/pub/a/2005/01/19/print.html
And then you have: http://www.dpawson.co.uk/xsl/sect2/pretty.html or even the good old http://www.xmlhack.com/read.php?item=35 

In short: there are ways to make the things looking nice.. up to you if you want to you.
dyoung520Author Commented:
Is there a specific scheme used in Printing?  The document has an xsl file associated with it already - which is similar to CSS (right?).  I assumed that is why the browser rendered it all "pretty" like.  However I was asked to print the document.

So I guess my question should have been is XML ever used this way?  Kind of like a print control language, but obviously it would  have to be converted at some point to an actual printer language.  
VenabiliCommented:
Yeah - xsl can be used to set printing properties.

Try to print it and see how it looks... - again - above are a few of the standard ways to print XMLs.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dyoung520Author Commented:
Thank You
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.