On Mar 7, 9:47 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> David Schwartz wrote:
> > My xsl includes image tags as follows:
>
> > <img src="../images/u.gif" width="16" height="16" alt="Back to top"
> > border="0"/>
>
> > Yet, after processing, the img tag is no longer self-closing so it's
> > not well-formed.
>
> "well-formed" is defined for XML and with XML
> <img />
> as well as
> <img/>
> as well as
> <img></img>
> _is_ well-formed.
>
> If you want to generate HTML with your stylesheet then you want
> <img>
> and that is achieved by using
> <xsl
utput method="html"/>
> and by making sure your result elements are in no namespace.
>
I am using <xsl

utput method="html"/>. Also, I'm looking for xhmtl so
<img> by itself won't do and, as I understand it anyway, not well-
formed in that context. Any thoughts what might be going on?
My result elements are not in a namespace. FWIW, here are the
stylesheet and output elements (I use the redirect to produce the
output files):
<xsl:stylesheet version="1.0" xmlns

sl="http://www.w3.org/1999/XSL/
Transform" xmlns:redirect="org.apache.xalan.xslt.extensions.R edirect"
extension-element-prefixes="redirect">
<!-- <xsl

utput method="html" version="4.0" indent="yes"
encoding="ISO-8859-1"/> -->
<xsl

utput method="xml" omit-xml-declaration="yes" version="4.0"
indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
encoding="ISO-8859-1"/>
Thanks for the help.
David