Changeset 99272 in vbox
- Timestamp:
- Apr 4, 2023 1:36:25 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/docbook-refentry-to-manual-dita.xsl
r99271 r99272 91 91 <xsl:choose> 92 92 <xsl:when test="$g_fToReference = 'true'"> 93 <xsl:text disable-output-escaping='yes'><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> 93 <xsl:text disable-output-escaping='yes'><!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"></xsl:text> 94 </xsl:when> 95 <xsl:otherwise> 96 <xsl:text disable-output-escaping='yes'><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"></xsl:text> 97 </xsl:otherwise> 98 </xsl:choose> 99 <xsl:text> 94 100 </xsl:text> 95 </xsl:when>96 <xsl:otherwise>97 <xsl:text disable-output-escaping='yes'><!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">98 </xsl:text>99 </xsl:otherwise>100 </xsl:choose>101 101 102 102 <!-- Root element --> … … 167 167 <xsl:element name="topic"> 168 168 <xsl:attribute name="rev">refsynopsisdiv</xsl:attribute> 169 <xsl:attribute name="toc">no</xsl:attribute> 169 <!-- <xsl:attribute name="toc">no</xsl:attribute> - topicref only. sigh --> 170 <xsl:attribute name="id"><xsl:value-of select="concat(../@id,'-synopsis')"/></xsl:attribute> 170 171 <xsl:element name="title"> 171 172 <xsl:text>Synopsis</xsl:text> … … 199 200 <xsl:element name="topic"> 200 201 <xsl:attribute name="rev">refsect1</xsl:attribute> 201 < xsl:attribute name="toc">no</xsl:attribute>202 <!-- <xsl:attribute name="toc">no</xsl:attribute> - topicref only. sigh --> 202 203 <xsl:attribute name="id"> 203 204 <xsl:choose> 204 205 <xsl:when test="@id"><xsl:value-of select="@id"/></xsl:when> 205 <xsl:otherwise><xsl:value-of select=" generate-id()"/></xsl:otherwise>206 <xsl:otherwise><xsl:value-of select="concat(generate-id(),'-',/@id)"/></xsl:otherwise> 206 207 </xsl:choose> 207 208 </xsl:attribute> … … 214 215 <xsl:choose> 215 216 <xsl:when test="self::title"/> 216 <xsl:when test="self::ref entry2"/>217 <xsl:when test="self::refsect2"/> 217 218 <xsl:when test="self::cmdsynopsis"> 218 219 <xsl:element name="p"> … … 226 227 </xsl:choose> 227 228 </xsl:for-each> 228 229 <!-- xsl:apply-templates select="node()[not(self::title) and not(self::refentry2)]" / -->230 229 </xsl:element> 231 230 232 <xsl:apply-templates select="ref entry2"/>231 <xsl:apply-templates select="refsect2"/> 233 232 </xsl:element> 234 233 </xsl:otherwise> … … 258 257 <xsl:element name="topic"> 259 258 <xsl:attribute name="rev">refsect2</xsl:attribute> 260 < xsl:attribute name="toc">no</xsl:attribute>259 <!-- <xsl:attribute name="toc">no</xsl:attribute> - topicref only. sigh --> 261 260 <xsl:attribute name="id"> 262 261 <xsl:choose> 263 262 <xsl:when test="@id"><xsl:value-of select="@id"/></xsl:when> 264 <xsl:otherwise><xsl:value-of select=" generate-id()"/></xsl:otherwise>263 <xsl:otherwise><xsl:value-of select="concat(generate-id(),'-',/@id)"/></xsl:otherwise> 265 264 </xsl:choose> 266 265 </xsl:attribute> … … 272 271 <xsl:choose> 273 272 <xsl:when test="self::title"/> 274 <xsl:when test="self::ref entry3"/>273 <xsl:when test="self::refsect3"/> 275 274 <xsl:when test="self::cmdsynopsis"> 276 275 <xsl:element name="p"> … … 288 287 </xsl:choose> 289 288 </xsl:for-each> 290 291 <!-- xsl:apply-templates select="node()[not(self::title) and not(self::refentry3)]"/ -->292 289 </xsl:element> 293 290 294 <xsl:apply-templates select="ref entry3"/>291 <xsl:apply-templates select="refsect3"/> 295 292 </xsl:element> 296 293 </xsl:otherwise>
Note:
See TracChangeset
for help on using the changeset viewer.