3 Copyright (C) Dean Camera, 2015.
5 dean [at] fourwalledcubicle [dot] com
9 <!-- Atmel Studio HV1 Setup XHTML transform file -->
11 <!-- Updates a helpcontentsetup.msha document to add appropriate version
13 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" version="1.0">
14 <xsl:output method="xml" omit-xml-declaration="yes"/>
16 <!-- Need to input the LUFA extension version for later use -->
17 <xsl:param name="extension-version"/>
19 <!-- Recursively match and copy/process all nodes/attributes -->
20 <xsl:template match="node()">
22 <xsl:copy-of select="@*"/>
23 <xsl:apply-templates select="node()"/>
27 <!-- Update the LUFA help package file name -->
28 <xsl:template match="xhtml:div[@class='package']/xhtml:span">
30 <xsl:copy-of select="@class"/>
32 <xsl:text>lufa_help_</xsl:text>
33 <xsl:value-of select="$extension-version"/>
34 <xsl:text>.mshc</xsl:text>
38 <xsl:template match="xhtml:div[@class='package']/xhtml:a">
40 <xsl:copy-of select="@class"/>
42 <xsl:attribute name="href">
43 <xsl:text>lufa_help_</xsl:text>
44 <xsl:value-of select="$extension-version"/>
45 <xsl:text>.mshc</xsl:text>
48 <xsl:text>lufa_help_</xsl:text>
49 <xsl:value-of select="$extension-version"/>
50 <xsl:text>.mshc</xsl:text>