Subject: Re: [xsl] Output in XML / HTML, double tags and CDATA in script. From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 17 Feb 2009 12:31:40 -0500 |
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>.
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>.
I'm using Apache and PHP XSLT transform. phpinfo: libxslt Version 1.1.17 libxslt compiled against libxml Version 2.6.26 EXSLT enabled libexslt Version 0.8.13
-- Upcoming hands-on XQuery, XSLT, UBL & code list training classes: Brussels, BE 2009-03; Prague, CZ 2009-03, http://www.xmlprague.cz Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Output in XML / HTML, double , Соловьев Андрей | Thread | Re: [xsl] Output in XML / HTML, dou, Martin Honnen |
[xsl] Output in XML / HTML, double , Соловьев Андрей | Date | Re: [xsl] Output in XML / HTML, dou, Martin Honnen |
Month |