Render Xml XSL

I have an xml file and an xsl file.  Is there a way to create a third file to have the xml file use the xsl stylesheet?

The xml does not reference the stylesheet so i have to tell it to use it without modifying the xml file if possible.

I need to render the data and create a pdf out of it.
omagarcAsked:
Who is Participating?
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.

Geert BormansInformation ArchitectCommented:
your third file would typically be a "program"

There are roughly 3 ways to tell an XSLT processor to process an XSLT and an XML

- command line execution
- embedded in a program (java, python, ruby, c#, ... name it)
- using javascript in a browser (but then you need to get around cross platform quirks)

So make your choice (it is, give us more detail of what exactly you want to do)

If you need PDF and you think of using XSL-FO, note that beside your XSLT processor you also need a XSL-FO processor
0

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
omagarcAuthor Commented:
Thanks! Using AlphaFive IDE and it now supports .net classes

dim trans as system::xml::xsl::XslTransform()
trans.Load("d:\projects\pn.xsl")
trans.Transform("d:\projects\pn.xml","d:\projects\mytest.html")
sys_print("D:\projects\mytest.html")
0
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 Browsers

From novice to tech pro — start learning today.