[Mono-list] XSLT Problems

Ivan Hawkes blackhawk@ivanhawkes.com
Sat, 5 Jul 2003 20:29:23 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 05 Jul 2003 6:06 pm, Atsushi Eno wrote:
> Hello,
>
> >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=
ut
> > 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=3D"1.0"
> > encoding=3D"UTF-8"?> that got added to the top of the output. This does=
n'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?

Doh, this is my lack of XSLT knowledge coming to the fore. For the record, =
I=20
just added another attribute (omit-xml-declaration=3D"yes") to my output ta=
g=20
i.e.

<xsl:output method=3D"xml" version=3D"1.0" encoding=3D"UTF-8" indent=3D"yes=
"=20
omit-xml-declaration=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=
ime=20
to make sure I choose the correct output method. I haven't read the standar=
d=20
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)

iQIVAwUBPwcnE/r1e7bH1pzBAQL4DQ//ccJoWnH1KibN16C6jwSBeDMdRqJ/rcIM
oso1nmWdvnSd8FHFbCy94nn1C0kIXEHaYYxvR6CqsvdNy8Ml4/jitpygAz8lyDoh
1nr3DoPFuTTBsCMteY0la795tXz0AzWe2+wV49vBSrhE1tSBtOktvQ70D+vr/Kty
JsRlwvsqvMlxZbvKemQ098kz+7B7Ts6vAYNvYWDfl0Hvz6iMMv1/u8YGxI+Qw06J
7gQu0ZZ4UF5fR8ecQOu760K3JV6ijYEF3cgiAJXAjFawyU+mXaZA51rE4aletIhK
Nj2UVV2OGa58/+huOJY9dA1/YvXm4vwVHUyevzNAx54IFOpmI9Yk7uXbBERpSVW3
jdrhOh57/ALAIgj8emjrcaIe7kFb3jGxSNLnotu59/ekpZh1P0FejDXI5e8fHx14
MSDIZn4cbQdWhUvPE39OG8i80XoYExKq6tLhPjfi/OWpgCx/7BmcPJ4AdwaAbCzm
SndM+tErYcHuxFzKTspN8xzMUqAlAkJ7Lil8IPyZ10FieH4MKfx3U32QWJsJ8W+/
3EAVj2ccG6/oZ2eMwaUL9jJ9DiRSsgt+2poaoujg+uCMTc08FbJYL8srqOKKZMRc
A64f998QPxPvXaXBPQ+Frho6AG912rR5Q3XLjJvEeW8qbia2NVr/j98CUU1iTKti
Y3jduIqriQ4=3D
=3D8rpW
=2D----END PGP SIGNATURE-----