"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:

Hi Andreas

> In my app.cfg there are two lines for kid:
> kid.outputformat="xhtml"
> kid.encoding="utf-8"
>
> I've tried "xhtml", "xthml-strict" and even "plain" but I allways get
> these strange <br></br> (lowercase)-tags :-\
> Only if I specify xmlns="http://www.w3c.org/1999/xhtml"; I get
> nice-looking <br />-tags but than my py:extend-stuff ignores the
> html-code of the master.kid (see first mail)

Ahh, sorry, I hadn't read that far back in the Thread. But I think I
see the problem now... You're doing py:match on

  item.tag == 'head'

when you should do it on

  item.tag = '{http://www.w3c.org/1999/xhtml}head'

instead. This is because the tags are renamed when a default namespace
is set. This is described in the last paragraph of the Kid Language
Guide on match templates:

  http://kid-templating.org/language.html#match-templates-py-match

> p.s. I am using kid Version: 0.9.3-1 (according to "apt-cache show
> python-kid")

Same as me, and a similar setup works when I match on the rewritten
element name.

-- 
Martin Geisler  ---  <[EMAIL PROTECTED]>  ---  http://mgeisler.net

Read, write, create Exif data in PHP with PEL:       http://pel.sf.net
Take control of your webserver with PHP Shell:  http://phpshell.sf.net

Attachment: pgpzKmllo6GvO.pgp
Description: PGP signature

Reply via email to