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

RE: how to match <br/> tag

Subject: RE: how to match <br/> tag
From: Jeff Beadle <Jbeadle@xxxxxxxx>
Date: Thu, 27 Jun 2002 11:23:22 -0400
xsl template match br
Vasu may have been using to "br" to illustrate that an element instance with
no descendant elements may be expressed in its abbreviated form:

    "<br/> is a short form of <br></br>"

But, be advised that thinking any element with no descendant elements can be
expressed this way, becase that's not true ... especially in the case of the
xhtml:br and possibly the html:{BR | Br | bR | br} element.

Being able to express an element in the abbreviated manner is totally
dependant on the intent of the given elements schema.

In this case, xhtml:br or html:{BR | Br | bR | br} is an empty element, it
cannot have any attributes or descendant entities as <br></br> does, which
has one (empty) text node.

So, with respect to xhtml or html, "br" cannot be of the form <br></br>, it
must be (ignoring casing/namespace) <br />.

Because, <br></br> will not validate against the xhtml schema ... it may be
ok against the highly tolerant html schema--but, I'm not sure.

-Jeff


-----Original Message-----
From: Vasu Chakkera [mailto:vasucv@xxxxxxxxxxx]
Sent: Thursday, June 27, 2002 10:57 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  how to match <br/> tag


The element you are referring to is br not br/
<br/> just tells you that it is an empty(<br>) element..
you must understand that <br/> is a short form of <br></br>
so your code must read
<xsl:template match="br">
Vasu

>From: "ashu  t" <aashut@xxxxxxxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
>Subject:  how to match <br/> tag
>Date: 27 Jun 2002 14:23:35 -0000
>
>i am trying to convert html to wml using xslt
>i have written style sheet for few tags but when i wrote
>style sheet for <br/> it is giving error i have used
><xsl:template match="br/"> but it has given error then i tried 
><xsl:template match="//br/"> but it is also giving error.
>can any one suggest me what should be the code for that.
>
>_________________________________________________________
>There is always a better job for you at Monsterindia.com.
>Go now http://monsterindia.com/rediffin/
>
>
>XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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

 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-2011 All Rights Reserved.