xsl-list
[Top] [All Lists]

Re: Outputting closing-slash in XHTML tags

2003-03-30 14:37:44
Try the example I've sent (I've also sent the output). You can see the
result at http://schema.xobjex.com/cgi-bin/process.pl?xsl=user/add.xsl
You will see that it gives you the result you're looking for.

I don't think you'll have much success with your current approach.

-----
X-Original-To: dbibbens(_at_)xobjex(_dot_)com
Date: Sun, 30 Mar 2003 16:04:10 -0500
From: Gan Uesli Starling <alias(_at_)starling(_dot_)us>
User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.2.1) Gecko/20021224
X-Accept-Language: en-us, en
Content-Type: text/plain; charset=us-ascii; format=flowed
Sender: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
X-MailLoop: 1

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




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



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