doc:reference instances (primarily embedded doc for params) and to
also copy any PIs that are children of doc:reference.
That ensures that any id/xml:id attributes get copied over -- so
that they can be used when use.id.as.filename is on -- and that
any dbhtml@dir and dbhtml@filename PIs can be used for moving
files into the correct subdirs and are output with right names.
<xsl:choose>
<xsl:when test="doc:reference">
<reference>
+ <xsl:copy-of select="doc:reference/@*"/>
+ <xsl:copy-of select="doc:reference/processing-instruction()"/>
<xsl:apply-templates/>
</reference>
<xsl:text> </xsl:text>