Changeset 11594
- Timestamp:
- 2006-04-06T14:12:52+12:00 (18 years ago)
- Location:
- trunk/gli/help
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/help/gen-index-xml.xsl
r6941 r11594 16 16 <xsl:for-each select="Title"> 17 17 <Title> 18 <xsl:apply-templates />18 <xsl:apply-templates select="Text"/> 19 19 </Title> 20 20 </xsl:for-each> -
trunk/gli/help/gen-many-html.xsl
r11092 r11594 3 3 4 4 <xsl:output method="html" encoding="UTF-8"/> 5 6 <xsl:template match="Break">7 <p/>8 </xsl:template>9 5 10 6 <xsl:template match="Document"> … … 18 14 19 15 <xsl:template match="Reference"> 20 <a href="{@target}.htm#{@target}"><xsl:apply-templates/></a> 16 <xsl:variable name="target" select="@target"/> 17 <a href="{@target}.htm"><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/></a> 21 18 </xsl:template> 22 19 … … 27 24 <xsl:template match="Title"/> 28 25 26 <xsl:template match="Text"> 27 <p><xsl:apply-templates/></p> 28 </xsl:template> 29 29 30 30 <xsl:template name="processSection"> … … 73 73 <font face="Verdana" size="5"> 74 74 <strong> 75 <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle )"/>75 <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/> 76 76 </strong> 77 77 </font> -
trunk/gli/help/gen-one-html-for-doc.xsl
r11092 r11594 3 3 4 4 <xsl:output method="html" encoding="UTF-8"/> 5 6 <xsl:template match="Break">7 <p/>8 </xsl:template>9 5 10 6 <xsl:template match="Document"> … … 27 23 28 24 <xsl:template match="Reference"> 29 <xsl:apply-templates/> 25 <xsl:variable name="target" select="@target"/> 26 <xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/> 30 27 </xsl:template> 31 28 … … 61 58 <xsl:choose> 62 59 <xsl:when test="contains($sectionNumber, '.')"> 63 <h4><xsl:value-of select="$sectionTitle "/></h4>60 <h4><xsl:value-of select="$sectionTitle/Text"/></h4> 64 61 </xsl:when> 65 62 <xsl:otherwise> 66 <h3><xsl:value-of select="$sectionTitle "/></h3>63 <h3><xsl:value-of select="$sectionTitle/Text"/></h3> 67 64 </xsl:otherwise> 68 65 </xsl:choose> 69 66 </xsl:template> 70 67 68 <xsl:template match="Text"> 69 <p><xsl:apply-templates/></p> 70 </xsl:template> 71 71 72 </xsl:stylesheet> -
trunk/gli/help/gen-one-html.xsl
r11092 r11594 3 3 4 4 <xsl:output method="html" encoding="UTF-8"/> 5 6 <xsl:template match="Break">7 <p/>8 </xsl:template>9 5 10 6 <xsl:template match="Document"> … … 24 20 25 21 <xsl:template match="Reference"> 26 <a href="#{@target}"><xsl:apply-templates/></a> 22 <xsl:variable name="target" select="@target"/> 23 <a href="#{@target}"><xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/></a> 27 24 </xsl:template> 28 25 … … 60 57 <xsl:choose> 61 58 <xsl:when test="contains($sectionNumber, '.')"> 62 <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle )"/></h3>59 <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/></h3> 63 60 </xsl:when> 64 61 <xsl:otherwise> 65 <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle )"/></h1>62 <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle/Text)"/></h1> 66 63 </xsl:otherwise> 67 64 </xsl:choose> 68 65 </xsl:template> 69 66 67 <xsl:template match="Text"> 68 <p><xsl:apply-templates/></p> 69 </xsl:template> 70 70 71 </xsl:stylesheet> -
trunk/gli/help/gen-one-tex.xsl
r11092 r11594 3 3 4 4 <xsl:output method="text" encoding="iso-8859-1"/> 5 6 <xsl:template match="Break">7 <p/>8 </xsl:template>9 5 10 6 <xsl:template match="Document-old"> … … 25 21 </html> 26 22 </xsl:template> 23 27 24 <xsl:template match="Document"> 28 25 % START OF AUTO-GENERATED GLI USER GUIDE … … 38 35 39 36 <xsl:template match="Reference"> 40 <xsl:apply-templates/> 37 <xsl:variable name="target" select="@target"/> 38 <xsl:value-of select="/Document//Section[@name=$target]/Title/Text"/> 41 39 </xsl:template> 42 40 … … 73 71 <xsl:when test="contains($sectionNumber, '.')"> 74 72 <!--<h4><xsl:value-of select="$sectionTitle"/></h4>--> 75 \paragraph{\emph{<xsl:value-of select="$sectionTitle "/>}}<xsl:text>73 \paragraph{\emph{<xsl:value-of select="$sectionTitle/Text"/>}}<xsl:text> 76 74 </xsl:text> 77 75 </xsl:when> 78 76 <xsl:otherwise> 79 77 <!--<h3><xsl:value-of select="$sectionTitle"/></h3>--> 80 \subsubsection{<xsl:value-of select="$sectionTitle "/>}<xsl:text>78 \subsubsection{<xsl:value-of select="$sectionTitle/Text"/>}<xsl:text> 81 79 </xsl:text> 82 80 </xsl:otherwise> … … 84 82 </xsl:template> 85 83 84 <xsl:template match="Text"> 85 <xsl:apply-templates/><xsl:text> 86 </xsl:text> 87 </xsl:template> 88 86 89 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.