[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Output in XML / HTML, double tags and CDATA in sc

Subject: Re: 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
Re:  Output in XML / HTML
At 2009-02-17 20:20 +0300, P!P>P;P>P2Q P5P2 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>.

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@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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.