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

mark1234
  • 1,110
  • 2
  • 24
  • 41

1 Answers1

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:

Community
  • 1
  • 1
Sean B. Durkin
  • 12,659
  • 1
  • 36
  • 65