[Mono-list] XSLT Problems

Ivan Hawkes blackhawk@ivanhawkes.com
Sat, 5 Jul 2003 16:54:49 +0100


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

On Saturday 05 Jul 2003 7:07 am, Atsushi Eno wrote:

> It seems related to recent changes of XPathNavigator implementation
> classes. I would ask to try attached patch and tell me the result
> (unfortunately I cannot
> test it on cygwin since XslTransform.Load() fails to load stylesheets at
> xmlCleanupParser()...)
>
> Since former XPathNavigator did not ignore xmlns attributes and actually
> write
> those attributes got from MoveTo*Attribute() instead of MoveTo*Namespace(=
).
> (Note that it was no other way for XslTransform since previous
> XPathNavigator
> implementation did not support MoveTo*Namespace()).
>
> Regards,
> Atsushi Eno

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

What has surprised me however is the <?xml version=3D"1.0" encoding=3D"UTF-=
8"?>=20
that got added to the top of the output. This doesn't happen in the Windows=
=20
version (and will mess up my HTML).  Is this expected behaviour? Do I need =
to=20
add some flag to a routine to prevent it doing it, or is this just a mistak=
e?

*output from routine below*

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<p class=3D"newsTitle">Some Notes<br/><span class=3D"p">I made some notes a=
bout it=20
for the sidebar. I made some notes about
it for the sidebar. I made some notes about it for the sidebar. I made some=
=20
notes about it for the sidebar. I made some
notes about it for the sidebar.</span></p>

Anyway, thanks for the patch - you might want to commit that one, time to=20
forge on with the project :-)
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQIVAwUBPwb0yfr1e7bH1pzBAQJvmw/9HnBcKkYNtVSRyT6n7TIOPkGIxViFHVfs
PFAqm3sSaHuirlh+9yjiGU73DugEbhpVtvkvyXytT3jBd19G2IVKq8bCw57tM/2k
733V1h74JjNl6mB/jjcOJakwDp5tqYZICUhT9w6OBEAKenR6WiugdPUVS+UfWjvZ
OR/6/SPgOFCFieQsKdNSyynnT1z1xDT9YVVQdCgtp2ZJSJoHbMlH0XdSJgNt8lrf
sywMitcN5yTv1Km+ya7jnsvGNC4fZNq/dw6GEBEBYSjXWmPaZPIb8zwBaq9Ewod1
kByzIQ2ffiH3b7OpFgOZjI+FaL2uzB7zdQz6u/b6bkX/oROaxseakj8Lg+X/E8L+
GYhJ4Hb7QVfoMNRCqkdKPFSICGsG1fk98upHhHkWZN0tR40JlJ7oX5XbA3hgjcEq
9Bs6zURLDZQYCrI2DoIhc9+HCffosD1IVg3ObiwicYtyvMpfuzQ5Ibp1bvXuIRch
wBcIa0ZDMRDMtBkdLD2tbjaDDKe0oeNBwR5rEHT2jNIiiEP54DStzj0ypuK0sc16
qWuY3+9h5tG3MvC52F4iPC5zEZoVr4p0UNTQvtLK2PT76HTVCF+hNgql3PVXDFFl
PJZZ85OORgSENf+K/qoE7XGBc9N9+iqbGy5qn/7hFLgMg9kudeWl4EBYHygtzJ78
SF16JcSQ5RY=3D
=3DDRE4
=2D----END PGP SIGNATURE-----