Subject: Re: self closing elements with attributes
From: annirack@xxxxxxx
Date: Wed, 07 Jan 2004 09:21:07 -0800
|
> Therefore, since you didn't have an <xsl:output/> instruction,
> that means
> that you must have had either "html" or "HTML" as the element type
> of your
> document element of your result tree.
>
> Therefore ... your result is probably HTML which doesn't need an
> end tag
> for <link> or <img>. If your output isn't HTML then using any
> other
> document element in the result would have given you your desired
> end tags
> without needing <xsl:output/>.
>
> So I'm curious why you do need end tags for elements of these two
> element
> types in a result that begins with the "html" document element.
You're exactly right. I am using html as my output. I want closed tags because I'm trying to be compliant to the emerging standards by using xhtml. I notice now that I forgot my xmlns which might have something to do with the problem.
Would anyone know how I can specify a DTD for my output using XSL? That was one thing I couldn't figure out.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|