[Mono-list] XSLT Problems
Sat, 5 Jul 2003 20:29:23 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
On Saturday 05 Jul 2003 6:06 pm, Atsushi Eno wrote:
> >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 c=
> > 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 =
> > 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
> >What has surprised me however is the <?xml version=3D"1.0"
> > encoding=3D"UTF-8"?> that got added to the top of the output. This does=
> > 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 =
> > doing it, or is this just a mistake?
Doh, this is my lack of XSLT knowledge coming to the fore. For the record, =
just added another attribute (omit-xml-declaration=3D"yes") to my output ta=
<xsl:output method=3D"xml" version=3D"1.0" encoding=3D"UTF-8" indent=3D"yes=
> Have you tried <xsl:output method=3D"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
I will be targetting XHTML 1.0 rather than HTML 4.0.1 and I have a little t=
to make sure I choose the correct output method. I haven't read the standar=
yet but I'm assuming <img ... /> is what I want output in any case.
Thanks once again for your help!
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
=2D----END PGP SIGNATURE-----