VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/legacypdf/xslfo/dita2fo-prolog.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
檔案大小: 2.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
12<!-- =================== start of prolog and metadata ====================== -->
13
14<!-- prolog data is placed all in brown background indicating content that
15 will not show when output to print. -->
16
17<xsl:template match="*[contains(@class,' topic/prolog ')]">
18 <fo:block background-color="#f0f0d0">
19 <xsl:attribute name="border-style">solid</xsl:attribute>
20 <xsl:attribute name="border-color">black</xsl:attribute>
21 <xsl:attribute name="border-width">thin</xsl:attribute>
22 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
23 <xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute>
24 <xsl:apply-templates/>
25 </fo:block>
26</xsl:template>
27
28
29<!-- metadata in prolog is displayed using element names as field labels, and
30 indented boxes for nested values. Good for 2 deep, at least. -->
31
32<xsl:template match="*[contains(@class,' topic/prolog ')]/*">
33 <fo:block>
34 <fo:inline font-weight="bold"><xsl:value-of select="name()"/>: </fo:inline>
35 <xsl:apply-templates/>
36 </fo:block>
37</xsl:template>
38
39<xsl:template match="*[contains(@class,' topic/prolog ')]/*/*">
40 <fo:block background-color="white"
41 start-indent="{$basic-start-indent} + 1em">
42 <xsl:attribute name="end-indent">6pt</xsl:attribute>
43 <fo:inline font-weight="bold"><xsl:value-of select="name()"/>: </fo:inline>
44 <xsl:apply-templates/>
45 </fo:block>
46</xsl:template>
47
48<xsl:template match="*[contains(@class,' topic/prolog ')]/*/*/*">
49 <fo:block background-color="#fafafa"
50 start-indent="{$basic-start-indent} + 2em">
51 <xsl:attribute name="end-indent">6pt</xsl:attribute>
52 <fo:inline font-weight="bold"><xsl:value-of select="name()"/>: </fo:inline>
53 <xsl:apply-templates/>
54 </fo:block>
55</xsl:template>
56
57<xsl:template match="*[contains(@class,' topic/prolog ')]/*/*/*/*">
58 <fo:block background-color="#f0f0f0"
59 start-indent="{$basic-start-indent} + 3em">
60 <xsl:attribute name="end-indent">6pt</xsl:attribute>
61 <fo:inline font-weight="bold"><xsl:value-of select="name()"/>: </fo:inline>
62 <xsl:apply-templates/>
63 </fo:block>
64</xsl:template>
65
66
67<!-- not applicable yet within FO -->
68
69<!-- =================== end of prolog and metadata ====================== -->
70
71
72
73</xsl:stylesheet>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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