This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> As for what you're saying as far as Saxon goes... I would 
> assume that that
> would have the same problems that I'm complaining about 
> (whether or not I
> want it to behave as the spec recommends :-).  Unless of 
> course, Saxon would
> support the iso-8859-1 (or whatever) spec that I have read 
> seems to preserve
> the &nbsp's as I want them preserved.

Saxon makes its own set of choices about how to represent the output, it
conforms to the spec but the spec leaves a lot of things for implementors to
decide. I suspect the output you are looking for is reasonably close to what
Saxon will give you if you specify <xsl:output method="xml"
encoding="iso-8859-1"/>. However, XML output from Saxon will never contain
symbolic entity references such as &nbsp; or &eacute;, you will always get
either actual iso-8859-1 characters, or numeric character references. It
uses entity references such as &nbsp; in HTML output, but its HTML output
will not be well-formed XML.

Mike Kay


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]