xsl-list
[Top] [All Lists]

Outputting closing-slash in XHTML tags

2003-03-30 14:04:10
I have templates like so...

<xsl:template match="head">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <xsl:apply-templates select="title"/>
    <meta name="author" content="Gan Uesli Starling"/>

  ...and so on...

</xsl:template>

...but the output looks like so...

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <xsl:apply-templates select="title">
  <meta name="author" content="Gan Uesli Starling">

...such that the closing slashes are gone. So the XHTML will
not validate. I am using Xalan for this.

How may I fix that, please?

Thanks,

Gan
--

 Mistera Sturno - Rarest Extinct Bird

 <(+)__       Gan Uesli Starling
  ((__/)=-    Kalamazoo, MI, USA
   `||`
    ++        http://starling.us


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>