[Mono-list] XSLT Problems

Atsushi Eno ginga@kit.hi-ho.ne.jp
Sun, 06 Jul 2003 02:06:24 +0900


>Thanks for the patch Atsushi! I tried it this morning and although it failed to apply (both chunks failed according to patch) I was able to cut the code in by hand. It worked! I've been able to successfully run the code and get some output from it...a great step towards the conversion to Mono :-) Much of the system depends on exactly this - go to database, grab some XML, XSLT it into HTML, write to web page.
am glad to hear that:-) and thanks for your report. I've committed that fix.

>What has surprised me however is the <?xml version="1.0" encoding="UTF-8"?> that got added to the top of the output. This doesn't happen in the Windows version (and will mess up my HTML).  Is this expected behaviour? Do I need to add some flag to a routine to prevent it doing it, or is this just a mistake?
Have you tried <xsl:output method="html" /> ? I think if you want to use
XSLT to generate html output (even if you want to generate xhtml), that
option should be specified (or you will receive <img></img> or <script />).

Atsushi Eno