Michael M wrote:
Okay, I have searched but have not found an answer and I am sure it is obvious. I am using nevow tags and want to have the doctype so that validation works. I am not using xmlfile or xmlstr.
I tried to do the following. docFactory = stan.loaders( tags.xml('DOCTYPE etc etc'), tags.html[ tags.head[tags.title['Help']], tags.body['How do I add a doctype'] ] )
loaders.stan only takes one arg so put the tags.xml and the tags.html top node in a tuple or list. The second arg is the name of the pattern to extract from the template in the first arg. docFactory = loaders.stan( ( tags.xml('DOCTYPE etc etc'), tags.html[ tags.head[tags.title['Help']], tags.body['How do I add a doctype'] ] ) ) - Matt -- __ / \__ Matt Goodall, Pollenation Internet Ltd \__/ \ w: http://www.pollenation.net __/ \__/ e: matt@pollenation.net / \__/ \ t: +44 (0)113 2252500 \__/ \__/ / \ Any views expressed are my own and do not necessarily \__/ reflect the views of my employer.