VirtualBox

Changeset 92084 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2021 2:22:05 PM (3 years ago)
Author:
vboxsync
Message:

doc/manual: Fixed dangling links in refentries to other refentries, causing xmllint to barf and VBoxManage build to fail.

Location:
trunk/doc/manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r91617 r92084  
    349349                '</catalog>'
    350350        $(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -E "XML_CATALOG_FILES=$(VBOX_XML_XREF_TO_TEXT).cat") \
    351                 --output "$@" "$<" $(filter %UserManual.xml,$^)
     351                --stringparam 'g_sMode' 'first' --output "$@" "$<" $(filter %UserManual.xml,$^)
     352        $(foreach x, $(VBOX_MANUAL_XML_REFENTRY_FILES)\
     353                ,$(NLTAB)$(QUIET)$(call VBOX_XSLTPROC_WITH_CAT, -ato "$@") --stringparam 'g_sMode' 'append' \
     354                        "$<" "$(VBOX_PATH_MANUAL_SRC)/en_US/$(x)")
     355        $(QUIET)$(APPEND) -n "$@" '' '</xsl:stylesheet>'
    352356
    353357#
  • trunk/doc/manual/docbook-refentry-link-replacement-xsl-gen.xsl

    r82969 r92084  
    2424  <xsl:strip-space elements="*"/>
    2525
     26<xsl:param name="g_sMode" select="not-specified"/>
    2627
    2728<!-- Default operation is to supress output -->
     
    3839-->
    3940<xsl:template match="/">
    40   <xsl:text>&lt;?xml version="1.0"?&gt;
     41  <xsl:if test="$g_sMode = 'first'">
     42    <xsl:text>&lt;?xml version="1.0"?&gt;
    4143&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" &gt;
    4244&lt;xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes" /&gt;
     
    4850
    4951</xsl:text>
     52  </xsl:if>
    5053  <xsl:apply-templates/>
    51   <xsl:text>
     54  <xsl:if test="$g_sMode = 'last'">
     55    <xsl:text>
    5256&lt;/xsl:stylesheet&gt;
    5357</xsl:text>
     58  </xsl:if>
    5459</xsl:template>
    5560
     
    122127</xsl:template>
    123128
     129<xsl:template match="refentry[@id]/refentryinfo/title">
     130  <xsl:text>&lt;xsl:template match="xref[@linkend='</xsl:text>
     131  <xsl:value-of select="../../@id"/><xsl:text>']"&gt;
     132  &lt;xsl:text&gt; &quot;</xsl:text>
     133  <xsl:value-of select="normalize-space()"/><xsl:text>&quot;&lt;/xsl:text&gt;
     134&lt;/xsl:template&gt;
     135</xsl:text>
     136  <xsl:apply-templates/>
     137</xsl:template>
     138
     139
    124140<!--
    125141  Debug/Diagnostics: Return the path to the specified node (by default the current).
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