title: What are some useful constructs for using XSLT to produce XSLT?
body: <p>I have an existing XSLT stylesheet that takes XML and produces nicely formatted XHTML.  I want to make an XSL-FO version of this stylesheet to produce PDF via Apache FOP.  What I want to know is this:</p>
  
  <p>Are there any convenient to use xslt patterns I need to learn to do things like:</p>
  
  <ul>
  <li>copying some nodes unaltered</li>
  <li>copying most of a node, but adding extra attributes</li>
  </ul>
  
  <p>I know I can create new nodes using </p>
  
  <pre><code>&lt;xsl:element&gt;
  </code></pre>
  
  <p>but are there any other useful things I will need.  Note that while I've not done a lot of copying from one XSLT format to another, I've done TONS of XML-> XHTML via XSLT so I'm familiar with most of the core of the language.</p>