[Mod_transform] meta tag created but not wanted, and not ended

Stanislas Ormieres stan at stormier.net
Tue Dec 7 09:47:41 EST 2004


Hello, I am quite new to mod_transform, and I don't know why it creates
a meta tag in the <head> (<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">), especially a <meta> withtout /> at
the end which make it impossible to parse with mozilla and firefox.

movie.xml :

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="movie.xsl"?>
<MovieCatalog>

  <movie>
    <title>The Matrix</title>
    <length>136</length>
    <genre>Sci-Fi and Fantasy</genre>
    <actors>
     <actor>Keanu Reeves</actor>
     <actor>Laurence Fishburne</actor>
     <actor>Carrie Ann Moss</actor>
    </actors>
   <datereleased>1999</datereleased>
   <director>Wachowski Brothers</director>
   <format>DVD</format>
  </movie>

</MovieCatalog>

movie.xsl :

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
  <head>
    <title>Movie Catalog Transformed</title>
  </head>
  <body>
    <h1>My Movie Catalog</h1>
    <hr/>
    <xsl:for-each select="/MovieCatalog/movie">
    <h2><xsl:value-of select="title" /></h2>
    </xsl:for-each>
  </body>
</html>
</xsl:template>
</xsl:stylesheet>



-- 
Stanislas Ormières <stan at stormier.net>
16 rue Pierre Nicole
75005 Paris
01 43 26 88 78
06 82 06 29 91
08 71 72 64 24



More information about the Mod_transform mailing list