[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: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Fri, 28 Jun 2002 08:52:46 +0000
|
No this is wrong. <xxx/> is in _all_ circumstances identical to
<xxx></xxx>
in XML irrespective of DTD or schema declarations. This equivalence is
clearly explicit in teh XML specification.
I beleive this too :)
From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: how to match <br/> tag
Date: Thu, 27 Jun 2002 16:45:43 +0100
> "<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
No this is wrong. <xxx/> is in _all_ circumstances identical to
<xxx></xxx>
in XML irrespective of DTD or schema declarations. This equivalence is
clearly explicit in teh XML specification.
Some browsers can not cope with <br></br> but that is because the do not
parse XML and only tolerate it because they try to parse the XML as HTML
they silently ignore parse errors.
No DTD or schema validator (or XSLT processor) can distinguish <br/>
from <br></br>.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|