VirtualBox

Changeset 78511 in vbox


Ignore:
Timestamp:
May 14, 2019 3:25:24 PM (5 years ago)
Author:
vboxsync
Message:

manual/docbook2latex.xsl: Better handling of the ulink element and its @url attribute. bugref:9216

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook2latex.xsl

    r78508 r78511  
    762762  </xsl:template>
    763763
    764   <xsl:template match="ulink">
     764  <xsl:template match="ulink[@url!='' and not(text())]">
     765    <xsl:text>\url{</xsl:text>
     766    <xsl:value-of select="@url"/>
     767    <xsl:text>}</xsl:text>
     768  </xsl:template>
     769
     770  <xsl:template match="ulink[@url!='' and text()]">
     771    <xsl:text>\href{</xsl:text>
     772    <xsl:value-of select="@url"/>
     773    <xsl:text>}{</xsl:text>
     774    <xsl:apply-templates />
     775    <xsl:text>}</xsl:text>
     776  </xsl:template>
     777
     778  <xsl:template match="ulink[(@url='' or not(@url)) and text()]">
    765779    <xsl:text>\url{</xsl:text>
    766780    <xsl:apply-templates />
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette