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

Re: XSL: xt question

Subject: Re: XSL: xt question
From: James Clark <jjc@xxxxxxxxxx>
Date: Sun, 20 Sep 1998 11:17:48 +0700
xt james clark
Don Park wrote:
> 
> Use <br /> or <hr />.  Both Netscape Navigator and Internet Explorer will
> ignore the / if there is a whitespace after the tag name.
> 
> It is an idiotic hack but a valuable one when you are desperate.

This hack helps a bit, but it isn't a complete, robust solution to the
problem:

- <br /> is valid XML and will be accepted by the major browsers but it
isn't valid HTML 4.0 (which means the result HTML can't be validated)

- < and & in SCRIPT and STYLE can't be handled

- some older browsers allow <DL COMPACT> but not <DL COMPACT="COMPACT">

- UTF-8 support is far from universal in the HTML world (even if you put
the appropriate META incantation in); named character entities and
charater references are more reliable

- there's no way to get a <!DOCTYPE declaration

- if you don't add any whitespace, it's easy to end up with everything
on one line, but indent-result="yes" isn't safe with HTML; to get
readable output some knowledge of whether elements are block or inline
is needed

Can anybody think of any others?

James



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


Current Thread
  • Re: XSL: xt question, (continued)
      • alex - Fri, 18 Sep 1998 12:12:10 -0400 (EDT)
    • alex - Fri, 18 Sep 1998 12:10:42 -0400 (EDT)
    • Don Park - Sat, 19 Sep 1998 18:56:38 -0400 (EDT)
      • G. Ken Holman - Sat, 19 Sep 1998 19:19:34 -0400 (EDT)
      • James Clark - Sun, 20 Sep 1998 00:53:02 -0400 (EDT) <=
    • Don Park - Sat, 19 Sep 1998 19:54:13 -0400 (EDT)
    • Don Park - Sat, 19 Sep 1998 21:14:00 -0400 (EDT)

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.