VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/legacypdf/xslfo/dita2fo-stubs.xsl@ 99507

最後變更 在這個檔案從99507是 98584,由 vboxsync 提交於 2 年 前

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.7 KB
 
1<?xml version='1.0'?>
2<!-- This file is part of the DITA Open Toolkit project hosted on
3 Sourceforge.net. See the accompanying license.txt file for
4 applicable licenses.-->
5<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
6
7<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 xmlns:fo="http://www.w3.org/1999/XSL/Format"
9 version='1.0'>
10
11<!-- Define the error message prefix identifier -->
12<xsl:variable name="msgprefix">DOTX</xsl:variable>
13
14<!-- =================== start of override stubs ====================== -->
15
16<!-- STUBS FOR USER PROVIDED OVERRIDE EXTENSIONS -->
17
18<xsl:template name="gen-user-header">
19 <!-- to customize: copy this to your override transform, add whatever content you want! -->
20 <!-- for example, to display logos, search/nav widgets, etc. -->
21</xsl:template>
22
23<xsl:template name="gen-user-footer">
24 <!-- to customize: copy this to your override transform, add whatever content you want! -->
25 <!-- for example, to display compliances for: validation, accessibility, content ratings, etc. -->
26</xsl:template>
27
28<xsl:template name="gen-user-sidetoc">
29 <!-- to customize: copy this to your override transform, add whatever content you want! -->
30 <!-- Common implementations use a table with align=right to place generated content
31 adjacent to the start of the body content -->
32</xsl:template>
33
34<xsl:template name="gen-user-scripts">
35 <!-- to customize: copy this to your override transform, add whatever content you want! -->
36 <!-- see (or enable) the named template "script-sample" for an example -->
37 <!--xsl:call-template name="script-sample"/-->
38</xsl:template>
39
40<xsl:template name="gen-user-styles">
41 <!-- to customize: copy this to your override transform, add whatever content you want! -->
42</xsl:template>
43
44
45<xsl:template name="gen-user-panel-title-pfx">
46 <!-- to customize: copy this to your override transform, add whatever content you want! -->
47 <!-- Generate content based on run-time parameter value, with local logic here -->
48 <!-- This is overrideable -->
49</xsl:template>
50
51<xsl:template name="gen-main-panel-title">
52 <!-- use the searchtitle unless there's no value - else use title -->
53 <xsl:variable name="schtitle"><xsl:value-of select="/*[contains(@class,' topic/topic ')]/*[contains(@class,' topic/titlealts ')]/*[contains(@class,' topic/searchtitle ')]"/></xsl:variable>
54 <xsl:variable name="ditaschtitle"><xsl:value-of select="/dita/*[contains(@class,' topic/topic ')][1]/*[contains(@class,' topic/titlealts ')]/*[contains(@class,' topic/searchtitle ')]"/></xsl:variable>
55 <xsl:variable name="maintitle"><xsl:value-of select="/*[contains(@class,' topic/topic ')]/*[contains(@class,' topic/title ')]"/></xsl:variable>
56 <xsl:variable name="ditamaintitle"><xsl:value-of select="/dita/*[contains(@class,' topic/topic ')][1]/*[contains(@class,' topic/title ')]"/></xsl:variable>
57 <xsl:choose>
58 <xsl:when test="string-length($schtitle) > 0"><xsl:value-of select="$schtitle"/></xsl:when>
59 <xsl:when test="string-length($ditaschtitle) > 0"><xsl:value-of select="$ditaschtitle"/></xsl:when>
60 <xsl:when test="string-length($maintitle) > 0"><xsl:value-of select="$maintitle"/></xsl:when>
61 <xsl:when test="string-length($ditamaintitle) > 0"><xsl:value-of select="$ditamaintitle"/></xsl:when>
62 <xsl:otherwise>
63 <xsl:text>***</xsl:text>
64 <xsl:call-template name="output-message">
65 <xsl:with-param name="msgnum">037</xsl:with-param>
66 <xsl:with-param name="msgsev">W</xsl:with-param>
67 </xsl:call-template>
68 </xsl:otherwise>
69 </xsl:choose>
70</xsl:template>
71
72<xsl:template name="gen-user-metadata"/>
73<!-- not applicable yet within FO -->
74
75<!-- =================== end of override stubs ====================== -->
76
77
78
79</xsl:stylesheet>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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