"Mansi" <[EMAIL PROTECTED]> writes: > I've tried using XML function. It does wierd things. It changes case > of attribute names.
I think this is caused by the default HTML serializer. Setting kid.outputformat="xhtml" in app.cfg makes Kid output XHTML and so respect the case of your tags. See http://www.kid-templating.org/guide.html#common-output-methods > It convers all '<px:' to '<ns1:'. I also gave namespace inside XML > function which results in 'unknown keyword' error. Does XML function > require to pass a method to it and not a string? It requires a string, and in recent versions of Kid it has a xmlns keyword argument which can be used to set the namespace of the topmost element. This was added in revision 329 http://www.kid-templating.org/trac/changeset/329 But like you, my version is too old... Luckily it seems to work just as good to declare the namespace directly. I can do this in my template after I set the output format to xhtml: <?python xml = """<px:x xmlns:px="http://example.net/">foo <px:y>bar</px:y></px:x>""" ?> ${XML(xml)} I hope this helps. -- Martin Geisler GnuPG Key: 0x7E45DD38 PHP Exif Library | PHP Weather | PHP Shell http://pel.sf.net/ | http://phpweather.net/ | http://mgeisler.net/ Read/write Exif data | Show current weather | A shell in a browser
pgpsJtDPx8T3Q.pgp
Description: PGP signature

