hi I'm trying to generated a XML based format that uses some predefined namespaces, and has it's on doctype.

I have found this example in kid docs but i'm not sure how to get it working within TG. Also is 'article' just a name I give it?

dt = ('article', '-//OASIS//DTD DocBook XML V4.1.2//EN',
      'http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd')
serializer = XMLSerializer(encoding='ascii', decl=1, doctype=dt)
t = Template(file='example.dbk')
print t.serialize(output=serializer)

So basically what I need is to give kid a special serializer for some of my pages, but not for all of them.

also I need to add entity tags for example.

<!ENTITY ns_xlink "http://www.w3.org/1999/xlink">

anyone has done this?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to