title: xsl:Template match xml node
body: <p>I am new to <a href="http://en.wikipedia.org/wiki/XSL_Formatting_Objects" rel="nofollow">XSL-FO</a> and have a very basic question, the following are xsl and xml files.<br>
  I expect "xxx" to be outputted for every xml node "inhouse" (template match). 
  But I am not getting it.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"   xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;         
    &lt;xsl:template match="CustomerData"&gt;    
      &lt;fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
        &lt;fo:layout-master-set&gt;        
          &lt;fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21.0cm" margin-left="1.5cm" margin-right="1.5cm" margin-top="0cm"&gt;
            &lt;fo:region-body margin-top="3cm"/&gt;
            &lt;fo:region-before extent="0cm"/&gt;
            &lt;fo:region-after extent="0cm"/&gt;     
          &lt;/fo:simple-page-master&gt;
        &lt;/fo:layout-master-set&gt;  
        &lt;fo:page-sequence master-reference="simple"&gt;                                 
          &lt;fo:flow flow-name="xsl-region-body"&gt;  
              &lt;fo:block font-family="Arial" font-size="8.5pt" font-weight="normal"&gt;       
                  abc                             
              &lt;/fo:block&gt;         
               &lt;xsl:template match="inhouse"&gt;  
                  &lt;fo:block color="#053679"&gt;
                        xxx            
                &lt;/fo:block&gt;                 
             &lt;/xsl:template&gt;
          &lt;/fo:flow&gt;      
        &lt;/fo:page-sequence&gt;
      &lt;/fo:root&gt;
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  
  &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;CustomerData&gt;
      &lt;inhouse&gt;   
      &lt;customerList&gt;
          &lt;customer&gt;           
              &lt;name&gt;Tom&lt;/name&gt;
          &lt;/customer&gt;
      &lt;/customerList&gt;  
    &lt;/inhouse&gt;
  &lt;/CustomerData&gt;
  </code></pre>