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

Re: XSL, XT, and ruined well-formed HTML

Subject: Re: XSL, XT, and ruined well-formed HTML
From: Steve Tinney <stinney@xxxxxxxxxxxxx>
Date: Thu, 16 Mar 2000 00:48:04 -0500
xhtml well formed nbsp
> XT ruins the
> well-formedness of my document.  It converts all of my <br /> tags to > plain <br> with no end tag.  It does a similar thing to all the 
> other empty tags.  Well this [expletive deleted]... 

Maybe (from the limited perspective of your immediate needs), but it is
conformant with section 16 of the XSLT spec.

> I changed the output type to xml, and that fixed that
> problem, but then I ran into the problem with all the &nbsp's in the
> documents. (the UTF-8 problem)

If you are going to reprocess it as XML, why is that a problem?
 
> So, I am in desperate need of either of two answers.
> 
> HOPEFULLY, how to get XT to stop ruining the well-formedness of the
> documents... (doesn't this violate the XHTML rec. anyhow?), or how to

XT is not producing XHTML.  It is producing a form of HTML which
actually works with current browsers.  So, no, no violation there.

> overcome the UTF-8 problem I run into with the text output solution?

If this is really, absolutely necessary, you could hack the text()
template to detect 0xa0 and replace it with &nbsp;.  The input to the
next phase of XML processing you mentioned might not then be valid,
though.  You might get somewhere by investigating the output encoding,
but I'm not familiar enough with XT to say these days.  I've switched
irrevocably to Saxon; you might look at that instead.

 Steve


 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.