Changeset 0b11e71 for stylesheets/pdf/lfs-mixed.xsl
- Timestamp:
- 09/04/2004 11:39:50 AM (20 years ago)
- Branches:
- 6.0
- Children:
- 557c4e0
- Parents:
- c17fc85
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/pdf/lfs-mixed.xsl
rc17fc85 r0b11e71 11 11 <xsl:template match="beginpage"> 12 12 <fo:block break-after="page"/> 13 </xsl:template> 14 15 <!-- Show URLs in italic font --> 16 <xsl:template match="ulink" name="ulink"> 17 <fo:inline font-style="italic"> 18 <fo:basic-link xsl:use-attribute-sets="xref.properties"> 19 <xsl:attribute name="external-destination"> 20 <xsl:call-template name="fo-external-image"> 21 <xsl:with-param name="filename" select="@url"/> 22 </xsl:call-template> 23 </xsl:attribute> 24 <xsl:choose> 25 <xsl:when test="count(child::node())=0"> 26 <xsl:call-template name="hyphenate-url"> 27 <xsl:with-param name="url" select="@url"/> 28 </xsl:call-template> 29 </xsl:when> 30 <xsl:otherwise> 31 <xsl:apply-templates/> 32 </xsl:otherwise> 33 </xsl:choose> 34 </fo:basic-link> 35 </fo:inline> 36 <xsl:if test="count(child::node()) != 0 37 and string(.) != @url 38 and $ulink.show != 0"> 39 <!-- yes, show the URI --> 40 <xsl:choose> 41 <xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)"> 42 <xsl:text> </xsl:text> 43 <fo:footnote> 44 <xsl:call-template name="ulink.footnote.number"/> 45 <fo:footnote-body font-family="{$body.fontset}" 46 font-size="{$footnote.font.size}"> 47 <fo:block> 48 <xsl:call-template name="ulink.footnote.number"/> 49 <xsl:text> </xsl:text> 50 <fo:inline> 51 <xsl:value-of select="@url"/> 52 </fo:inline> 53 </fo:block> 54 </fo:footnote-body> 55 </fo:footnote> 56 </xsl:when> 57 <xsl:otherwise> 58 <fo:inline hyphenate="false"> 59 <xsl:text> [</xsl:text> 60 <xsl:call-template name="hyphenate-url"> 61 <xsl:with-param name="url" select="@url"/> 62 </xsl:call-template> 63 <xsl:text>]</xsl:text> 64 </fo:inline> 65 </xsl:otherwise> 66 </xsl:choose> 67 </xsl:if> 13 68 </xsl:template> 14 69
Note:
See TracChangeset
for help on using the changeset viewer.