Fix hashbang line in "smartquotes" script.
[docutils.git] / sandbox / docbook / test_files / literal_block.rst
blobc81a8002e72d511ce21da75e68126d2d0a09d489
1 .. an example of code
3 .. $Id$
5 Python code is below::
7  def make_attribute_set(the_name, the_dict):
8      sys.stdout.write('<xsl:attribute-set name="%s">\n' % (the_name))
9      the_keys = the_dict.keys()
10      the_keys.sort()
11      for the_key in the_keys:
12          sys.stdout.write('     <xsl:attribute name="%s">' % (the_key))
13          sys.stdout.write(the_dict[the_key])
14          sys.stdout.write('</xsl:attribute>\n')
15      sys.stdout.write('</xsl:attribute-set>\n\n')
16  sys.stdout.write("""
17  <xsl:stylesheet 
18      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
19      xmlns:fo="http://www.w3.org/1999/XSL/Format"
20      version="1.1"
21      >
22      <xsl:import href="%s"/>
23      """ % (stylesheet))