Subject: Re: [xsl] Output in XML / HTML, double tags and CDATA in script. From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 17 Feb 2009 18:40:08 +0100 |
At 2009-02-17 20:20 +0300, P!P>P;P>P2QP5P2 PP=P4QP5P9 wrote:Hi. I have such XSLT code: ... <br/> <img src="test.jpg"/> ...
When i'm using output method="html", i have <br/> and <img/> tags transformed to <br></br> and <img></img>.
This is not conformant behaviour:
http://www.w3.org/TR/xslt#section-HTML-Output-Method The html output method should not output an end-tag for empty elements. For HTML 4.0, the empty elements are area, base, basefont, br, col, frame, hr, img, input, isindex, link, meta and param. For example, an element written as <br/> or <br></br> in the stylesheet should be output as <br>.
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:php="http://php.net/xsl" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Output in XML / HTML, dou, G. Ken Holman | Thread | Re: [xsl] Output in XML / HTML, dou, Andrew Ferk |
Re: [xsl] Output in XML / HTML, dou, G. Ken Holman | Date | Re: [xsl] Output in XML / HTML, dou, Andrew Ferk |
Month |