Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rendering XML To HTML

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XML file and I am going to write a XSLT; say, xxx.xsl, to render the XML file. To my undertanding, if I add a line of reference to the xxx.xsl in the XML document like this:
<?xml-stylesheet type="text/xsl" href="xxx.xsl"?>
when I double click on the xxx.xsl file icon, the browser will transform the XML document into HTML, and I will see the HTML output.
But the XML file I have does not have a line of reference to any XSL file, and it is not in my control to add a line of reference to the xxx.xsl in the XML file. Do we prepare the following code:

Should we save the above code as a .html file and click on the file icon to see the HTML output of the XML document?
[ December 13, 2002: Message edited by: JiaPei Jen ]
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me answer my own question. The answer is "YES". This is the way to do it. I have tested it out. It works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic