Subject: Re: Outputting closing-slash in XHTML tags
From: Daniel Bibbens <dbibbens@xxxxxxxxxx>
Date: Sun, 30 Mar 2003 15:37:44 -0600 (CST)
|
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@xxxxxxxxxx
> Date: Sun, 30 Mar 2003 16:04:10 -0500
> From: Gan Uesli Starling <alias@xxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxxxxx
> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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
|