xsl-list
[Top] [All Lists]

Re: [xsl] Output in XML / HTML, double tags and CDATA in script.

2009-02-17 12:32:10
At 2009-02-17 20:20 +0300, СоловÑ?ев Ð?ндÑ?ей 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>.

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

Can you change the XSLT processor or review bug reports for any fixes?

I hope this helps.

. . . . . . . . . Ken

--
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(_at_)CraneSoftwrights(_dot_)com
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--