Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Rendering XML To HTML

 
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.
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic