1

I need a way to transform XML to HTML (using XSL) but without a server. So, I want to create a standalone HTML file (with hardcodes XSL path and name). Allow the user to select an XML Transform it with the XSL and display results in browser

Original XML cannot be changed (so cannot just embed XSL in XML)

Is this possible? Everything I found requires post, but I'm not using a server

Regards

Mark

0

1 Answer 1

3

Yes, it's possible. And you don't need javascript to do it, but you can use javascript if you want.

Just look at the previous (XSLT question)[https://stackoverflow.com/questions/12964917]

Use a processing-instruction like...

<?xml-stylesheet type="text/xsl" href="soccer.xslt"?>

Refer:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.