the code is simple enough
<xsl:stylesheet ... >
<xsl
utput method="html" />
<xsl:template match="/">
<xsl:for-each select="//image">
<img src="{@path}" alt="" width="300" height="255" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
When the img tag is printed out, it is not closed, which is invalid. That is, it outputs <img ... > instead of <img ... />
If I change the output method to xml, it outputs the img tag correctly, but it outputs "<?xml version="1.0" encoding="UTF-8"?>" at the beginning.
Any idea how to output a valid img tag?
thanks in advance.
<xsl:stylesheet ... >
<xsl
<xsl:template match="/">
<xsl:for-each select="//image">
<img src="{@path}" alt="" width="300" height="255" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
When the img tag is printed out, it is not closed, which is invalid. That is, it outputs <img ... > instead of <img ... />
If I change the output method to xml, it outputs the img tag correctly, but it outputs "<?xml version="1.0" encoding="UTF-8"?>" at the beginning.
Any idea how to output a valid img tag?
thanks in advance.