Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > b50d8ee6d7871fcc13c0677a9364ed59 > files > 436

bcfg2-doc-1.3.0-1.fc17.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Genshi XML Template Reference &mdash; Bcfg2 1.3.0 documentation</title>
    
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.3.0',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/sidebar.js"></script>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="top" title="Bcfg2 1.3.0 documentation" href="../index.html" />
    <link rel="up" title="The Bcfg2 Server" href="index.html" />
    <link rel="next" title="The Bcfg2 Client" href="../client/index.html" />
    <link rel="prev" title="Bcfg2 Data Encryption" href="encryption.html" />
 
<link rel="stylesheet" href="../_static/bcfg2.css" type=""/>

  </head>
  <body>

<div style="text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/bcfg2_logo.png" border="0" alt="sampledoc"/></a>
</div>

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../client/index.html" title="The Bcfg2 Client"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="encryption.html" title="Bcfg2 Data Encryption"
             accesskey="P">previous</a> |</li>
	<li><a href="../index.html">home</a> |&nbsp;</li>
	<!--<li><a href="../search.html">search</a> |&nbsp;</li>-->
	<li><a href="../help/index.html">help</a> |&nbsp;</li>
	<li><a href="../contents.html">documentation </a> &raquo;</li>

          <li><a href="../contents.html" >Bcfg2 documentation 1.3.0</a> &raquo;</li>
          <li><a href="index.html" accesskey="U">The Bcfg2 Server</a> &raquo;</li> 
      </ul>
    </div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="genshi-xml-template-reference">
<span id="xml-genshi-reference"></span><h1>Genshi XML Template Reference<a class="headerlink" href="#genshi-xml-template-reference" title="Permalink to this headline">¶</a></h1>
<p>Genshi&#8217;s XML templating language is used in
<a class="reference internal" href="plugins/structures/bundler/index.html#server-plugins-structures-bundler-index"><em>Bundler</em></a> for templated bundles.
The language is described in depth at <a class="reference external" href="http://genshi.edgewall.org">Genshi</a>.  The XML schema reference follows.</p>
<div class="section" id="genshi-tags">
<h2>Genshi Tags<a class="headerlink" href="#genshi-tags" title="Permalink to this headline">¶</a></h2>
<dl class="group" id="group:py:genshiElements">
<dt id="group:py:genshiElements">
<!--[group:py:genshiElements]--><em>group</em> <strong>py:genshiElements</strong><a class="headerlink" href="#group:py:genshiElements" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><blockquote class="first">
<div>Most Genshi templating directives can be used either as
standalone elements or as attributes on existing elements.
This element group defines the standalone tags.</div></blockquote>
<dt>Elements:</dt>
<dd class="last"><p class="first"><span class="target" id="element:py:with"></span><dl class="element">
<dt id="element:py:with">
<!--[element:py:with]--><em>element</em> <strong>py:with</strong><a class="headerlink" href="#element:py:with" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:withType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:withType:vars"></span><tt class="docutils literal"><span class="pre">py:vars</span></tt></td>
<td><blockquote class="first last">
<div>A semicolon-delimited list of variables to define and their
values.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p><span class="target" id="element:py:replace"></span><dl class="element">
<dt id="element:py:replace">
<!--[element:py:replace]--><em>element</em> <strong>py:replace</strong><a class="headerlink" href="#element:py:replace" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:replaceType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:replaceType:value"></span><tt class="docutils literal"><span class="pre">py:value</span></tt></td>
<td><blockquote class="first last">
<div>The value to replace the contents with.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p><span class="target" id="element:py:choose"></span><dl class="element">
<dt id="element:py:choose">
<!--[element:py:choose]--><em>element</em> <strong>py:choose</strong><a class="headerlink" href="#element:py:choose" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:chooseType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:chooseType:test"></span><tt class="docutils literal"><span class="pre">py:test</span></tt></td>
<td><blockquote class="first last">
<div>If <tt class="docutils literal"><span class="pre">test</span></tt> is set, the child <a class="reference internal" href="#element:py:when"><tt class="xref xml xml-element docutils literal"><span class="pre">py:when</span></tt></a>
directives are tested for equality to the value of the
expression.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<dt>Child elements:</dt>
<dd><ul class="first last">
<li><dl class="element" id="element:py:when">
<dt id="element:py:when">
<!--[element:py:when]--><em>element</em> <strong>py:when</strong><a class="headerlink" href="#element:py:when" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><blockquote class="first">
<div><p>The <tt class="docutils literal"><span class="pre">when</span></tt> directive is used inside
<a class="reference internal" href="#complexType:py:chooseType"><tt class="xref xml xml-type docutils literal"><span class="pre">py:chooseType</span></tt></a> or
<a class="reference internal" href="#attribute:py:genshiAttrs:choose"><tt class="xref xml xml-attribute docutils literal"><span class="pre">choose</span></tt></a> to handle a single
specific condition.</p>
</div></blockquote>
<dl class="last docutils" id="complexType:py:ifType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head"><p class="first last">Name</p>
</th>
<th class="head"><p class="first last">Description</p>
</th>
<th class="head"><p class="first last">Values</p>
</th>
<th class="head"><p class="first last">Required</p>
</th>
<th class="head"><p class="first last">Default</p>
</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><p class="first last"><span class="target" id="attribute:py:ifType:test"></span><tt class="docutils literal"><span class="pre">py:test</span></tt></p>
</td>
<td><blockquote class="first last">
<div><p>The statement giving the value to test</p>
</div></blockquote>
</td>
<td><p class="first last"><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></p>
</td>
<td><p class="first last">Yes</p>
</td>
<td><p class="first last">None</p>
</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd><p class="first last">Any</p>
</dd>
</dl>
</dd>
</dl>

</li>
<li><dl class="element" id="element:py:otherwise">
<dt id="element:py:otherwise">
<!--[element:py:otherwise]--><em>element</em> <strong>py:otherwise</strong><a class="headerlink" href="#element:py:otherwise" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:otherwiseType">
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd><p class="first last">Any</p>
</dd>
</dl>
</dd>
</dl>

</li>
</ul>
</dd>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p><span class="target" id="element:py:for"></span><dl class="element">
<dt id="element:py:for">
<!--[element:py:for]--><em>element</em> <strong>py:for</strong><a class="headerlink" href="#element:py:for" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:forType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:forType:each"></span><tt class="docutils literal"><span class="pre">py:each</span></tt></td>
<td><blockquote class="first last">
<div>The loop iterator</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p><span class="target" id="element:py:if"></span><dl class="element">
<dt id="element:py:if">
<!--[element:py:if]--><em>element</em> <strong>py:if</strong><a class="headerlink" href="#element:py:if" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:ifType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:ifType:test"></span><tt class="docutils literal"><span class="pre">py:test</span></tt></td>
<td><blockquote class="first last">
<div>The statement giving the value to test</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p><span class="target" id="element:py:match"></span><dl class="element">
<dt id="element:py:match">
<!--[element:py:match]--><em>element</em> <strong>py:match</strong><a class="headerlink" href="#element:py:match" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:matchType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:matchType:path"></span><tt class="docutils literal"><span class="pre">py:path</span></tt></td>
<td><blockquote class="first last">
<div>XPath expression to search for in the template.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:matchType:buffer"></span><tt class="docutils literal"><span class="pre">py:buffer</span></tt></td>
<td><blockquote class="first last">
<div>Whether the matched content should be buffered in
memory. Buffering can improve performance a bit at the cost
of needing more memory during rendering. Buffering is
<em>required</em> for match templates that contain more than one
invocation of the <tt class="docutils literal"><span class="pre">select()</span></tt> function. If there is only
one call, and the matched content can potentially be very
long, consider disabling buffering to avoid excessive memory
use.</div></blockquote>
</td>
<td><tt class="docutils literal"><span class="pre">true</span></tt> | <tt class="docutils literal"><span class="pre">false</span></tt></td>
<td>No</td>
<td><tt class="first last docutils literal"><span class="pre">true</span></tt></td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:matchType:once"></span><tt class="docutils literal"><span class="pre">py:once</span></tt></td>
<td><blockquote class="first last">
<div>Whether the engine should stop looking for more matching
elements after the first match. Use this on match templates
that match elements that can only occur once in the stream,
such as the &lt;head&gt; or &lt;body&gt; elements in an HTML
template, or elements with a specific ID.</div></blockquote>
</td>
<td><tt class="docutils literal"><span class="pre">true</span></tt> | <tt class="docutils literal"><span class="pre">false</span></tt></td>
<td>No</td>
<td><tt class="first last docutils literal"><span class="pre">false</span></tt></td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:matchType:recursive"></span><tt class="docutils literal"><span class="pre">py:recursive</span></tt></td>
<td><blockquote class="first last">
<div>Whether the match template should be applied to its own
output. Note that once implies non-recursive behavior, so
this attribute only needs to be set for match templates that
don&#8217;t also have once set.</div></blockquote>
</td>
<td><tt class="docutils literal"><span class="pre">true</span></tt> | <tt class="docutils literal"><span class="pre">false</span></tt></td>
<td>No</td>
<td><tt class="first last docutils literal"><span class="pre">true</span></tt></td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
<p class="last"><span class="target" id="element:py:def"></span><dl class="element">
<dt id="element:py:def">
<!--[element:py:def]--><em>element</em> <strong>py:def</strong><a class="headerlink" href="#element:py:def" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><p class="first"></p>
<dl class="last docutils" id="complexType:py:defType">
<dt>Attributes:</dt>
<dd><table border="1" class="first last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:defType:function"></span><tt class="docutils literal"><span class="pre">py:function</span></tt></td>
<td><blockquote class="first last">
<div>The function prototype</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>Yes</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
<p><strong>Any</strong> arbitrary child elements allowed</p>
<dt>Text content:</dt>
<dd>Any</dd>
</dl>
</dd>
</dl>

</p>
</dd>
</dd>
</dl>

</div>
<div class="section" id="genshi-attributes">
<h2>Genshi Attributes<a class="headerlink" href="#genshi-attributes" title="Permalink to this headline">¶</a></h2>
<dl class="attributeGroup" id="attributeGroup:py:genshiAttrs">
<dt id="attributeGroup:py:genshiAttrs">
<!--[attributeGroup:py:genshiAttrs]--><em>attributeGroup</em> <strong>py:genshiAttrs</strong><a class="headerlink" href="#attributeGroup:py:genshiAttrs" title="Permalink to this definition">¶</a></dt>
</dt>
<dd><blockquote class="first">
<div>Most Genshi templating directives can be used either as
standalone elements or as attributes on existing elements.
This attribute group defines the attribute directives.</div></blockquote>
<table border="1" class="last docutils">
<colgroup>
<col width="10%" />
<col width="50%" />
<col width="20%" />
<col width="10%" />
<col width="10%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Name</th>
<th class="head">Description</th>
<th class="head">Values</th>
<th class="head">Required</th>
<th class="head">Default</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:attrs"></span><tt class="docutils literal"><span class="pre">py:attrs</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id6">attrs directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:choose"></span><tt class="docutils literal"><span class="pre">py:choose</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id2">choose directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:content"></span><tt class="docutils literal"><span class="pre">py:content</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id7">content directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:def"></span><tt class="docutils literal"><span class="pre">py:def</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id4">def directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:for"></span><tt class="docutils literal"><span class="pre">py:for</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id3">for directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:if"></span><tt class="docutils literal"><span class="pre">py:if</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id1">if directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:match"></span><tt class="docutils literal"><span class="pre">py:match</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id5">match directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:otherwise"></span><tt class="docutils literal"><span class="pre">py:otherwise</span></tt></td>
<td><blockquote class="first last">
<div>The <tt class="docutils literal"><span class="pre">otherwise</span></tt> directive is used inside
<a class="reference internal" href="#complexType:py:chooseType"><tt class="xref xml xml-type docutils literal"><span class="pre">py:chooseType</span></tt></a> or
<a class="reference internal" href="#attribute:py:genshiAttrs:choose"><tt class="xref xml xml-attribute docutils literal"><span class="pre">choose</span></tt></a> to handle all
conditions not handled by a <a class="reference internal" href="#element:py:when"><tt class="xref xml xml-element docutils literal"><span class="pre">py:when</span></tt></a>.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:replace"></span><tt class="docutils literal"><span class="pre">py:replace</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id8">replace directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:strip"></span><tt class="docutils literal"><span class="pre">py:strip</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#id9">strip directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-even"><td><span class="target" id="attribute:py:genshiAttrs:when"></span><tt class="docutils literal"><span class="pre">py:when</span></tt></td>
<td><blockquote class="first last">
<div>The <tt class="docutils literal"><span class="pre">when</span></tt> directive is used inside
<a class="reference internal" href="#complexType:py:chooseType"><tt class="xref xml xml-type docutils literal"><span class="pre">py:chooseType</span></tt></a> or
<a class="reference internal" href="#attribute:py:genshiAttrs:choose"><tt class="xref xml xml-attribute docutils literal"><span class="pre">choose</span></tt></a> to handle a single
specific condition.</div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
<tr class="row-odd"><td><span class="target" id="attribute:py:genshiAttrs:with"></span><tt class="docutils literal"><span class="pre">py:with</span></tt></td>
<td><blockquote class="first last">
<div><a class="reference external" href="http://genshi.edgewall.org/wiki/Documentation/xml-templates.html#py-with">with directive</a></div></blockquote>
</td>
<td><a class="reference external" href="http://www.w3.org/TR/xmlschema-2/#string"><tt class="docutils literal"><span class="pre">string</span></tt></a></td>
<td>No</td>
<td>None</td>
</tr>
</tbody>
</table>
</dd>
</dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Genshi XML Template Reference</a><ul>
<li><a class="reference internal" href="#genshi-tags">Genshi Tags</a></li>
<li><a class="reference internal" href="#genshi-attributes">Genshi Attributes</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="encryption.html"
                        title="previous chapter">Bcfg2 Data Encryption</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="../client/index.html"
                        title="next chapter">The Bcfg2 Client</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/server/genshi-xml.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../client/index.html" title="The Bcfg2 Client"
             >next</a> |</li>
        <li class="right" >
          <a href="encryption.html" title="Bcfg2 Data Encryption"
             >previous</a> |</li>
	<li><a href="../index.html">home</a> |&nbsp;</li>
	<!--<li><a href="../search.html">search</a> |&nbsp;</li>-->
	<li><a href="../help/index.html">help</a> |&nbsp;</li>
	<li><a href="../contents.html">documentation </a> &raquo;</li>

          <li><a href="../contents.html" >Bcfg2 documentation 1.3.0</a> &raquo;</li>
          <li><a href="index.html" >The Bcfg2 Server</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Narayan Desai.
      Last updated on Mar 20, 2013.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>