summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/ProductionTransforms/MergeHxF.xsl
blob: 6b6a20e55d8617fe4577fe58744d547a8a837cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:ds="http://ddue.schemas.microsoft.com/authoring/2003/5"
  version="1.1">

  <xsl:output doctype-system="MS-Help://Hx/Resources/HelpFileList.dtd" indent="yes" encoding="UTF-8" />

  <xsl:param name="hxfToMerge" />

  <xsl:template match="/">
    <xsl:for-each select="*">
      <xsl:copy>
        <xsl:copy-of select="@*"/>
        <xsl:copy-of select="File"/>
        <xsl:copy-of select="document($hxfToMerge)//File"/>
      </xsl:copy>
    </xsl:for-each>
  </xsl:template>

  <!--
        <xsl:for-each select="document($hxfToMerge)//File">
          <xsl:copy-of select="."/>
        </xsl:for-each>
  <xsl:template match="File">
  </xsl:template>
  -->
</xsl:stylesheet>