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

Re: html:br

Subject: Re: html:br
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 31 Mar 2003 16:57:25 +0100
html br
> must have declared a namespace of some sort.  I'm not sure
> how to do this. 

the same way you declare any namespace
xmlns:html="http://www.w3.org/1999/xhtml"
assuming that the html: prefix is XHTML.

> Is this considered good practice,
If you are generating XHTML then it's just a matter of style whether you
prefix the elements or not, but beware if you do prefix them then they
won't be understood by "legacy" html browsers You will have to send teh
file to a system that really understands XHML (such as mozilla or
netscape 7).

If you are generating HTML then it is wrong to put the HTML elements
into a namespace and so wrong to prefix them as you can not associate a
prefix with no-namespace.

> Oh, and one more question:  how do I generate a line break for my html code,
> for the source code?

do you mean you want to put a linebreak in the generated html, for
stylistic reasons?
<xsl:text>&#10;</xsl:text>
will do that.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.