title: Use .xsl stylesheet to display XML generated from eclipse xsd in a web browser
body: <p>There seems to be tons of information related to this topic, but none have helped me out yet :(  I used eclipse to create an .xsd file to defile a schema for xml.  This worked great.  Then I generated an .xml file (in eclipse) and populated out some information.  The XML file also looks good.  The problem is that I want to display this XML file in a web browser (for easy reading) and I think I need an xsl stylesheet to do this.  No matter what I try, I cannot dig any information out of my XML file.  I have tried all sorts of namespace types of things I found on the net to no avail.  Can someone please help me figure out how to code the .xsl to dig out data from my .xml file?  Thanks SO MUCH in advance.</p>
  
  <p>Here is a very simple xml file as an example:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="calibrationStylesheet.xsl"?&gt;
  &lt;tns:calibration xmlns:tns="http://www.example.org/calibrationSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/calibrationSchema calibrationSchema.xsd "&gt;
    &lt;tns:Date&gt;2013-07-16&lt;/tns:Date&gt;
    &lt;tns:Time&gt;11:00:00&lt;/tns:Time&gt;
    &lt;tns:Temp&gt;25.5&lt;/tns:Temp&gt;
    &lt;tns:hardware&gt;
      &lt;tns:NAnalyzers&gt;4&lt;/tns:NAnalyzers&gt;
      &lt;tns:NGenerators&gt;4&lt;/tns:NGenerators&gt;
      &lt;tns:NPorts&gt;4&lt;/tns:NPorts&gt;
      &lt;tns:instr/&gt;
    &lt;/tns:hardware&gt;
    &lt;tns:calGroup&gt;
      &lt;tns:calGroupType&gt;Analysis&lt;/tns:calGroupType&gt;
      &lt;tns:pathLoss&gt;
        &lt;tns:pathName&gt;PathName&lt;/tns:pathName&gt;
      &lt;/tns:pathLoss&gt;
    &lt;/tns:calGroup&gt;
  &lt;/tns:calibration&gt;
  </code></pre>
  
  <p>and here is the xsl stylesheet.  I am trying just to read out the Temp as an example, but would like to be able to read all of the data.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
   xmlns:xs="http://wwwe.w3.org/2001/XMLSchema" 
   xmlns:tns="http://www.example.org/calibrationSchema" 
   xs:schemaLocation="http://www.example.org/calibrationSchema calibrationSchema.xsd "&gt;
  
      &lt;xsl:template match="/"&gt;
          &lt;html&gt;
          &lt;body&gt;
          Hello
          &lt;xsl:value-of select="//tns:calibration/Temp"&gt;&lt;/xsl:value-of&gt;
          After
          &lt;/body&gt; 
          &lt;/html&gt;
  
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Its definitely a mess from me trying lots of things. How can I fix this? Thanks again.</p>