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

Re: including the HTML <BR> in XSL template

Subject: Re: including the HTML <BR> in XSL template
From: "Betty L. Harvey" <harvey@xxxxxxxxxxxxxxxxx>
Date: Wed, 26 Apr 2000 17:24:22 -1000 (HST)
html br
On Wed, 26 Apr 2000, Jay Marvin wrote:

> I would like to output a <BR> from a template, but am having trouble finding
> the right way to do it.  What special way do I need to use to get these four
> characters, "<BR>", out?   I understand it may involve wrapping it in
> <xml:text>.
> 
> <xsl:template match="Line">
> 	<xsl:value-of select="."/>
> 	<BR>
> </xsl:template>
> 
> 

XSL is XML compliant.  Empty elements (even HTML) have to
be well-formed.  

This will work:

<xsl:template match="Line">
       <xsl:value-of select="."/>
       <BR/>
</xsl:template>   

Either <BR/> or <BR></BR> will work.  This rule is also
true for the <HR> and <IMG> HTML elements.

Betty

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 301-540-8251 
Electronic Commerce Connection, Inc. |        410-787-9200 FAX: 9830
245 Hammarlee Road                   | 
Glen Burnie, Md.  21060              |
harvey@xxxxxxxxxx                    | Washington,DC SGML/XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/  


 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.