Changeset ed5f52d for stylesheets/pdf/lfs-mixed.xsl
- Timestamp:
- 08/12/2004 09:55:42 PM (20 years ago)
- Branches:
- 6.0
- Children:
- 78db8f55
- Parents:
- 96e8f71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/pdf/lfs-mixed.xsl
r96e8f71 red5f52d 4 4 xmlns:fo="http://www.w3.org/1999/XSL/Format" 5 5 version="1.0"> 6 7 <!-- Split URLs --> 8 <xsl:template name="hyphenate-url"> 9 <xsl:param name="url" select="''"/> 10 <xsl:choose> 11 <xsl:when test="ancestor::varlistentry"> 12 <xsl:choose> 13 <xsl:when test="string-length($url) > 88"> 14 <xsl:value-of select="substring($url, 1, 50)"/> 15 <xsl:param name="rest" select="substring($url, 51)"/> 16 <xsl:value-of select="substring-before($rest, '/')"/> 17 <xsl:text> /</xsl:text> 18 <xsl:value-of select="substring-after($rest, '/')"/> 19 </xsl:when> 20 <xsl:otherwise> 21 <xsl:value-of select="$url"/> 22 </xsl:otherwise> 23 </xsl:choose> 24 </xsl:when> 25 <xsl:otherwise> 26 <xsl:value-of select="substring-before($url, '//')"/> 27 <xsl:text>// </xsl:text> 28 <xsl:call-template name="split-url"> 29 <xsl:with-param name="url2" select="substring-after($url, '//')"/> 30 </xsl:call-template> 31 </xsl:otherwise> 32 </xsl:choose> 33 </xsl:template> 34 35 <xsl:template name="split-url"> 36 <xsl:choose> 37 <xsl:when test="contains($url2, '/')"> 38 <xsl:param name="url2" select="''"/> 39 <xsl:value-of select="substring-before($url2, '/')"/> 40 <xsl:text> /</xsl:text> 41 <xsl:call-template name="split-url"> 42 <xsl:with-param name="url2" select="substring-after($url2, '/')"/> 43 </xsl:call-template> 44 </xsl:when> 45 <xsl:otherwise> 46 <xsl:value-of select="$url2"/> 47 </xsl:otherwise> 48 </xsl:choose> 49 </xsl:template> 6 50 7 51 <!-- Shade screen --> … … 46 90 <!-- Admonitions text properties --> 47 91 <xsl:attribute-set name="admonition.properties"> 48 <xsl:attribute name="margin-right"> 12pt</xsl:attribute>92 <xsl:attribute name="margin-right">6pt</xsl:attribute> 49 93 </xsl:attribute-set> 50 94
Note:
See TracChangeset
for help on using the changeset viewer.