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: Those pesky  's again




David Carlisle wrote:

> why do you care about entity references in the result file?

My goal was to use XSLT to produce a file that both
(i) parses as XML (so that it can be run thru XSLT again), and
(ii) displays as HTML, with readable HTML tables
This file has  's in it, which can't be parsed unless ' '
is defined in a DTD.
I was hoping to generate an inline DTD for it, but it looks like
generating that part of XML was left out of XSLT.

> To generate a doctype line use the doctype-system attribute to
> xsl:output.

No, this gives me creatures like
(xalan) <!DOCTYPE HTML SYSTEM "[<!ENTITY nbsp '#160'>]">
(saxon) <!DOCTYPE html
                              SYSTEM "[<!ENTITY nbsp '#160'>]">
(xt) nothing at all.

> the browsers will be expecting the unicode character #160.

Yes.
Jeff


 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]