[xsl] Outputting closing-slash in XHTML tags

Subject: [xsl] Outputting closing-slash in XHTML tags
From: Gan Uesli Starling <alias@xxxxxxxxxxx>
Date: Sun, 30 Mar 2003 16:04:10 -0500
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



Current Thread