Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 6th, 2007, 03:02 AM
Authorized User
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default <br/> becomes <br></br>

have this in xsl
<xsl:template match="block[@type= 'par']" xmlns="http://www.w3.org/1999/xhtml">

gets in html this:
words words words <br></br>
words words ....

As result I get visual a new paragraph and not a new line.

I have the same problem with

(I'm using php5 and the included libxslt 1.1.12)
Old July 6th, 2007, 07:42 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

Most browsers aren't very good at XHTML, so it's best not to generate it unless you have an XSLT 2.0 processor that supports the XHTML output method. With XSLT 1.0, don't use the XHTML namespace in your output; the XSLT processor will then use the HTML output method automatically, and will generate br and hr elements the HTML way.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL TAGS HIDING eg <BR> simondev Crystal Reports 2 March 8th, 2014 03:33 AM
Replace "<enter>" with "<br>" Varg_88 Classic ASP Basics 5 February 14th, 2011 12:33 PM
to append <br> in XSLT dharus XSLT 4 August 1st, 2006 09:52 AM
Replacing Garriage Returns with <br /> rit01 ASP.NET 2.0 Basics 7 March 21st, 2006 03:33 AM
Replace vbcrlf with <br> using C# kgriffin ASP.NET 1.0 and 1.1 Basics 2 May 4th, 2005 09:29 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.