Changeset 86612 in vbox for trunk/doc/manual
- Timestamp:
- Oct 16, 2020 2:48:01 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 140985
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/xhtml-qhelp.xsl
r86286 r86612 12 12 </xsl:text></xsl:variable> 13 13 14 <xsl:variable name="inputFileName"> 15 <xsl:text>UserManual.xhtml</xsl:text> 16 </xsl:variable> 17 14 18 <xsl:template match="/"> 15 19 <xsl:element name="QtHelpProject"> … … 23 27 <xsl:value-of select="$newline" /> 24 28 <xsl:element name="filterSection"> 25 <!-- No keywords and toc for now --> 26 <!-- <xsl:value-of select="$newline" /> --> 27 <!-- <xsl:element name="toc"></xsl:element> --> 28 <!-- <xsl:value-of select="$newline" /> --> 29 <xsl:value-of select="$newline" /> 30 <xsl:element name="toc"> 31 <xsl:apply-templates select="//xhtml:div[@class='toc']//xhtml:span[@class='chapter']"/> 32 </xsl:element><!-- toc --> 33 <xsl:value-of select="$newline" /> 29 34 <!-- <xsl:element name="keywords"></xsl:element> --> 30 35 <xsl:value-of select="$newline" /> … … 39 44 <!-- ====================single html input file========================== --> 40 45 <xsl:element name="file"> 41 <xsl: text>UserManual.xhtml</xsl:text>46 <xsl:value-of select="$inputFileName" /> 42 47 </xsl:element> 43 48 <xsl:value-of select="$newline" /> … … 54 59 </xsl:template> 55 60 61 <!-- ===================toc related template(s)====================== --> 56 62 <xsl:template match="xhtml:span[@class='chapter']"> 57 <xsl:element name="file"> 58 <xsl:text>ch</xsl:text> 59 <xsl:value-of select="format-number(position(), '00')"/> 60 <xsl:text>.html</xsl:text> 63 <xsl:element name="section"> 64 <xsl:attribute name="title"> 65 <xsl:value-of select="*" /> 66 </xsl:attribute> 67 <xsl:attribute name="ref"> 68 <xsl:value-of select="$inputFileName" /><xsl:value-of select="xhtml:a/@href" /> 69 </xsl:attribute> 61 70 </xsl:element> 62 71 <xsl:value-of select="$newline" /> 63 72 </xsl:template> 64 73 <!-- ============================================================== --> 65 74 66 75 <xsl:template match="//xhtml:img">
Note:
See TracChangeset
for help on using the changeset viewer.