1 <xsl:transform
   2   xmlns=""
   3   xmlns:astro="http://www.astro.com/astro"
   4   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
   5   
   6         <xsl:strip-space elements="*"/>
   7         
   8         <xsl:output method="html"/>
   9         
  10         <xsl:template match="astro:stardb">
  11            <html>
  12            <h1>Bright Star Catalog Extract</h1>
  13            <body>
  14               <xsl:apply-templates/>
  15            </body>
  16            </html>
  17         </xsl:template>
  18         
  19         <xsl:template match="astro:star">
  20            <b>Star Id: </b><xsl:value-of select="astro:hr"/><br/>
  21            <b>Constellation: </b><xsl:value-of select="astro:constellation"/><br/>
  22            <b>Description: </b><xsl:value-of select="astro:fullname"/><br/>
  23            <b>RA J2000: </b><xsl:value-of select="astro:ra/astro:h"/><xsl:text>:</xsl:text><xsl:value-of select="astro:ra/astro:m"/><xsl:text>:</xsl:text><xsl:value-of select="astro:ra/astro:s"/><br/>
  24            <b>DEC J2000: </b><xsl:value-of select="astro:ra/astro:sgn"/><xsl:value-of select="astro:dec/astro:d"/><xsl:text>:</xsl:text><xsl:value-of select="astro:dec/astro:m"/><xsl:text>:</xsl:text><xsl:value-of select="astro:dec/astro:s"/><br/>
  25            <b>Visual Magnitude: </b><xsl:value-of select="astro:vmag"/><br/>
  26            <b>Spectral Type: </b><xsl:value-of select="astro:spec"/><br/>
  27            <b>Galactic Longitude: </b><xsl:value-of select="astro:glng"/><br/>
  28            <b>Galactic Latitude: </b><xsl:value-of select="astro:glat"/><br/>
  29            <hr></hr>
  30         </xsl:template>
  31         
  32         
  33         <xsl:template match="astro:_test-04">
  34             <!-- discard text contents -->
  35         </xsl:template>
  36 
  37 </xsl:transform>
  38