为啥xml不是每个单词的开头a字母开头的单词

Extensible Style LanguageXSLXMLXSLXMLXSLXMLWebXSLPDE
XSLHTML+CSSCSS2XSLHTML+CSSCSSWebXSLXSLXMLWeb
XSLXSL1999421XSLXSLXSL
1999421XSLJames TauberFOPXSLXSLXMLPDFWebXSL
XSLXSLCSSXSL
bidi-override
display-graphic
display-included-container
display-rule
display-sequence
first-line-marker
footnote-citation
inline-included-container
inline-rule
inline-sequence
layout-master-set
list-block
list-item-body
list-item-label
multi-case
multi-properties
multi-property-set
multi-switch
multi-toggle
page-number
page-number-citation
page-sequence
region-after
region-body
region-end
region-start
sequence-specification
sequence-specifier-alternating
sequence specifier repeating
sequence-specifier-single
simple-link
simple-page-master
static-content
table-and-caption
table-body
table-caption
table-cell
table-column
table-footer
table-header
XSLareaCSSXSLCSSXSL
list-item-labellist-item-bodylist-itemlist-item-labellist-item
* XSLregion-bodyregion-beforeregion-afterregion-startregion-end
* blockdisplay-graphicdisplay-linkdisplay-rulelist-block
* characterinline-graphicinline-linkinline-ruleinline-sequencepage-number
XSLXSLXMLhttp://www.w3.org/XSL/Format
&xsl:stylesheet
xmlns:xsl=&http://www.w3.org/TR/WD-xsl&
xmlns:fo=&http://www.w3.org/XSL/Format/1.0&
result-ns=&fo&&
fo:bidi-override
fo:character
fo:display-graphic
fo:display-included-container
fo:display-rule
fo:display-sequence
fo:first-line-marker
fo:footnote
fo:footnote-citation
fo:inline-graphic
fo:inline-included-container
fo:inline-rule
fo:inline-sequence
fo:layout-master-set
fo:list-block
fo:list-item
fo:list-item-body
fo:list-item-label
fo:multi-case
fo:multi-properties
fo:multi-property-set
fo:multi-switc
fo:multi-toggle
fo:page-number
fo:page-number-citation
fo:page-sequence
fo:region-after
fo:region-before
fo:region-body
fo:region-end
fo:region-start
fo:sequence-specification
fo:sequence-specifier-alternating
fo:sequence-specifier-repeating
fo:sequence-specifier-single
fo:simple-link
fo:simple-page-master
fo:static-content
fo:table-and-caption
fo:table-body
fo:table-caption
18&&??SLfo:
CSSCSSXSLCSSfont-familyXSLfont-familyCSSXSLfo:blockTimesCSS
{font-family: New York, Times New Roman, Times, serif }
XSLfont-familyfo:block
font-family=&New
York,Times New Roman,Times,serif&&
font-familyNew York, Times New Roman, Times, serifCSSfont-familyXSLfont-familyCSSXSLserif
XSLCSSfont-size-adjustligaturecharacterhyphenation-keepXSLXSL
auto-restore
background
background-attachment
background-color
background-image
background-position
background-repeat
* border-after-color
border-after-style
border-after-width
border-before-color
border-before-style
border-before-width
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-collapse
border-color
border-end-color
border-end-style
border-end-width
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-spacing
border-start-color
border-start-style
* border-start-width
border-style
border-top
border-top-color
border-top-style
border-top-width
border-width
break-after
break-before
caption-side
cell-height
column-count
column-gap
* column-number
column-width
cue-before
digit-group-sep
empty-cells
end-indent
external-destination
font-family
font-height-override-after
font-height-override-before
font-size-adjust
font-stretch
font-style
font-variant
font-weight
hyphenation-char
hyphenation-keep
hyphenation-ladder-count
hyphenation-push-char-count
hyphenation-remain-char-count
indicate-destination
inhibit-line-breaks
initial-page-number
internal-destination
keep-with-next
keep-with-previous
last-line-end-indent
letter-spacing
letter-value
line-height
line-height-shift-adjustment
line-stacking-strategy
margin-bottom
margin-left
margin-right
margin-top
max-height
may-break-after-row
may-break-before-row
min-height
n-columns-repeated
n-columns-spanned
* n-digits-per-group
n-rows-spanned
padding-after
padding-before
padding-bottom
padding-end
padding-left
padding-right
padding-start
padding-top
page-break-inside
page-height
page-master-blank-even
* page-master-even
page-master-first
page-master-last-even
page-master-last-odd
page-master-name
page-master-odd
page-master-repeating
page-width
pause-after
pause-before
pitch-range
play-during
precedence
* provisional-distance-between-starts
provisional-label-separation
reference-orientation
row-height
rule-orientation
rule-style
rule-thickness
score-spaces
sequence-src
show-destination
* space-above-destination-block
space-above-destination-start
space-after
space-before
space-between-list-rows
space-start
speak-header
speak-numeral
speak-punctuation
speech-rate
start-indent
starts-row
table-height
table-layout
table-omit-middle-footer
table-omit-middle-header
table-width
text-align
text-align-last
text-decoration
text-indent
text-shadow
text-transform
vertical-align
visibility
voice-family
white-space-treatment
word-spacing
wrap-option
writing-mode
XSLXMLXSLXMLXMLXMLXSL.fobXML.xml
15-1XSLfo:rootfo:layout-master-setfo:page-sequencefo:layout-master-setfo:simple-page-masterfo:simple-page-master
fo:page-sequencefo:page-sequencefo:sequence-specificationfo:flowfo:blockfont-size20font-familyserif
xmlns:fo=&http://www.w3.org/XSL/Format/1.0&&
&fo:layout-master-set&
&fo:simple-page-master
page-master-name=&only&&
&fo:region-body/&
&/fo:simple-page-master&
&/fo:layout
master-set&
&fo:page-sequence&
&fo:sequence-specification&
&fo:sequence-specifier-single
page-master-name=&only&/&
&/fo:sequence-specification&
font-size=&20pt& font-family=&serif&&
&/fo:block&
font-size=&20pt& font-family=&serif&&
&/fo:block&
&/fo:flow&
15-1XMLXSLXSL15-2XSL14-115-1
version=&1.0&?&
&xsl:stylesheet
xmlns:xsl=&http://www.w3.org/XSL/Transform/1.0&
xmlns:fo=&http://www.w3.org/XSL/Format/1.0&
result-ns=&fo&
indent-result=&yes&&
&xsl:template
match=&/&&
xmlns:fo=&http://www.w3.org/XSL/Format/1.0&&
&fo:layout-master-set&
&fo:simple-page-master
page-master-name=&only&&
&fo:region-body/&
&/fo:simple-page-master&
&/fo:layout-master-set&
&fo:page-sequence&
&fo:sequence-specification&
&fo:sequence-specifier-single
page-master
name=&only&/&
&/fo:sequence-specification&
&xsl:apply-templates
select=&//ATOM&/&
&/fo:page-sequence&
&/xsl:template&
&xsl:template
match=&ATOM&&
font-size=&20pt& font-family=&serif&&
&xsl:value-of
select=&NAME&/&
&/fo:block&
&/xsl:template&
&/xsl:stylesheet&
15.2.4 FOP
XSLXMLXSLJames TauberFOPFOPJavaFOformatting objectAdobe Acrobat PDF/fop/FOP
FOP0.6.0XSLFOPJavaJava 1.1fop.jarCLASSPATHcom.jtauber.fop.FOPmain()
C:\XML\BIBLE\15&java
com.jtauber.fop.FOP 15-1.fob 15-1.pdf
Tauber s FOP 0.6.0
page-height: using 11in
page-width: using 8in
successfully
read and parsed 15-1.fob
out page 1... done page 1.
successfully
wrote 15-1.pdf
15-1.fobXML15-1.pdfPDFAdobe AcrobatPDF
PDFASCIIPostScriptPDF15-1Acrobatplug-inNetscape Navigator
15-1 Netscape NavigatorPDF
XSLXMLPDFWebXSLPDF
fo:rootfo:layout-master-setfo:page-sequencefo:rootxmlns:fohttp: //www.w3.org /XSL /Format /1.0idfo:root
fo:layout-master-setQuark XPressPowerPoint
fo:simple-page-masterfo:layout-master-setfo:simple-page-master15-2
fo:region-before
fo:region-after
* fo:region-body
fo:region-start
fo:region-end
fo:flowfo:static-content
simple-page-master
1page-master-name
2page-height
3page-width
page-heightpage-widthsize11&′ 8.5&
fo:layout-master-setfo:simple-page-master118.50.50.51
&fo:layout-master-set&
&fo:simple-page-master
page-master-name=&even&
height=&8.5in&
width=&11in&
margin-top=&0.5in&
margin-bottom=&0.5in&
margin-left=&l.0in&
margin-right=&0.5in&&
&fo:region-body/&
&/fo:simple-page-master&
&fo:simple-page-master
page-master-name=&odd&
height=&8.5in&
width=&11in&
margin-top=&0.5in&
margin-bottom=&0.5in&
margin-left=&0.5in&
margin-right=&1.0in&&
&fo:region-body/&
&/fo:simple-page-master&
&/fo:layout-master-set&
* margin-bottommargin-leftmargin-rightmargin-topmargin
* writing-modereference-orientation
beforeafterbodystartend
* clipover-flow
* column-countcolumn-gap
* backgroundbackground-attachmentbackground-colorbackground-imagebackground-repeatbackground-position
* border-before-colorborder-before-styleborder-before-widthborder-after-colorborder-after-styleborder-after-widthborder-start-colorborder-start-styleborder-start-widthborder-end-colorborder-end-styleborder-end-widthborder-top-colorborder-top-styleborder-top-widthborder-bottom- colorborder-bottom-styleborder-bottom-widthborder-left-colorborder-left-styleborder-left-widthborder-right-colorborder-right-styleborder-right-widthborderborder-topborder-bottomborder-leftborder-rightborder-colorborder-styleborder-
* padding-bottompadding-leftpadding-rightpadding-toppadding-bottompadding-startpadding-endpadding-beforepadding-afterpadding
* margin-bottommargin-leftmargin-rightmargin-topmarginspace-beforespace-afterstart-indentend indent
* writing-modereference-orientation
fo:layout-master-set10.5
&fo:layout-master-set&
&fo:simple-page-master
page-master-name=&only&
height=&8.5in&
width=&11in&
margin-top=&0.5in&
margin-bottom=&0.5in&
margin-left=&l.0in&
margin-right=&0.5in&&
&fo:region-start
extent=&l.0in&
border-color=&black&
border-width=&2px&/&
&fo:region-before
extent=&l.0in&
border-color=&black&
border-width=&2px&/&
&fo:region-body
border-color=&black&
border-width=&2px&/&
&fo:region-end
extent=&1.0in&
border-color=&black&
border-width=&2px&/&
&fo:region-after
extent=&l.0in&
border-color=&black&
border-width=&2px&/&
&/fo:simple-page-master&
&/fo:layout-master-set&
fo:layout-master-setfo:page-sequence
* fo:sequences-pecification
* fo:static-content
fo:flowfo:static-contentflow
fo:sequence-specification15-1
fo:static-contentfo:static-content
??o:sequence-specification
fo:sequence-specifier-single
fo:sequence-specifier-alternating
fo:sequence-specifier-repeating
fo:sequence-specifier-singlepage-master-namefo:sequence-specificationletter
&fo:sequence-specification&
&fo:sequence-specifier-single
page-master-name=&letter&/&
&/fo:sequence-specification&
clipoverflow
&fo:sequence-specification&
&fo:sequence-specifier-single
page-master-name=&letter&/&
&fo:sequence-specifier-single
page-master-name=&letter&/&
&/fo:sequence-specification&
letterlletter2
&fo:sequence-specification&
&fo:sequence-specifier-single
page-master-name=&letterl&/&
&fo:sequence-specifier-single
page-master-name=&letter2&/&
&/fo:sequence-specification&
fo:sequence-specifier-alternatingfo:sequence-specifier-repeatingfo:sequence-specifier-repeatingfo:sequence-specifier-alternating
letter_firstletter
&fo:sequence-specification&
&fo:sequence-specifier-repeating
page-master-first=&letter_first&
page-master-repeating=&letter&
&/fo:sequence-specification&
page-master-firstpage-master-repeatingpage-master-firstpage-master-repeating
&fo:sequence-specification&
&fo:sequence-specifier-repeating
page-master-first=&letter&
page-master
repeating=&letter&
&/fo:sequence-specification&
fo:sequence-specifier-alternating
&fo:sequence-specification&
&fo:sequence-specifier-repeating
page-master-first=&chapter_first&
page-master-even=&chapter_even&
page-master-blank-even=&chapter_blank&
page-master-odd=&chapter_odd&
page-master-last-even=&chapter_last_even&
page-master-last-odd=&chapter_last_odd&
page-Master-repeating=&letter&
&/fo:sequence-specification&
��page-master-blank-odd��
fo:flow对象保存放置在由序列规格指定的主控页实例上的真实内容。此内容是由一系列fo:block、fo:display-graphic、fo:display-link、fo:display-rule以及其他块级元素组成的。在本节,我们将集中于基本的fo:block元素,它大体上与HTML的DIV元素等价。在本章的后面,我们将看到文本流包含的更多的块级元素。
例如,下面的这个基本文本流,包含几个原子的名称,它们分别放在各自的块中:
name=&xsl-body&&
&fo:block&Actinium&/fo:block&
&fo:block&Aluminum&/fo:block&
&fo:block&Americium&/fo:block&
&/fo:flow&
fo:flow的name特性(此处有xsl-body值)指定此文本流的内容将放在该页中五个区域的哪个区域上。允许值为:
xsl-before
例如,页眉的flow(从左到右,从上到下的英语文本)的flow- name具有值为xsl-before。下面是用于页脚的文本流:
id=&q2& flow-name=&xsl-after&&
&fo:block&
15: XSL Formatting Objects
&/fo:block&
&/fo:flow&
尽管fo:flow元素的每条内容都出现在一页上,但fo:static-content元素的每条内容则出现在每页上;例如,页眉或页脚。不一定要使用fo:static-content元素,但如果使用,必须放在页序列中所有的fo:flow元素之前。
fo:static-content元素的特性和内容与fo:flow的相同。但是,由于fo:static-content不能将自己的内容放在多个页面上,如果必须如此,那么通常其内容要比fo:flow少。例如,下面是用于页眉的fo:static-content:
&fo:static-content
id=&sc2& flow-name=&xsl-before&&
&fo:block&
15: XSL Formatting Objects
&/fo:block&
&/fo:static-content&
除了任何格式化对象所具有的常用的id特性外,fo:page-sequence元素还有六个可选的特性,它们可为序列定义页编号。这六个特性为:
initial-page-number
letter-value
digit-group-sep
n-digits-per-group
sequence-src
initial-page-number特性定义此序列中的第一页号码。此特性的最可能的值是1,但如果前面的页存在于不同的文件中,那么此值可能比较大。剩下来的五个特性的句法和含义,与作为XSL转换语言的xsl:number元素的特性使用时完全相同。
xsl:number元素和format、letter-value、digit-group-sep、n-digits-per-group、sequence-src特性已在第14章&XSL变换&的&数字到字符串的转换&中讨论过。
fo:page-number格式化对象是一空的内联元素,用于插入当前页的号码。格式化程序负责确定使用什么样的号码。此元素只有唯一的一个特性��id。此外,可将fo:page-number包装在fo:inline-sequence、fo:block或类似的元素中,以便将字体属性和类似的属性应用于此元素。例如,下面的页脚使用fo:static-content和fo:page-number来将页码放在每页的底部:
&fo:static-content
id=&sc2& flow-name=&xsl-after&&
&fo:block&
&fo:page-number/&
&/fo:block&
&/fo:static-content&
下面的页序列指定该页码使用小罗马数字,并从10开始计数。
&fo:page-sequence
initial-page-number=&10& format=&i&&
sequence specification -&
&fo:static-content
flow-name=&xsl-after&&
text-align-last=&centered& font-size=&10pt&&
&fo:page-number/&
&/fo:block&
&/fo:static-content&
&/fo:page-sequence&
XSLHTMLIMG
fo:flowfo:static-content
fo:display-graphic
fo:display-rule
fo:display-included-container
fo:display-sequence
fo:list-item
fo:blockCSSdisplay:blockHTMLDIVXSLfo:flowfo:blockfo:static-contentfo:blockfo:blockfo:display-graphicfo:display-rulefo: inline-sequencefo:page-number
&fo:block&
&fo:inline-sequence
font-style=&italic&&
&/fo:inline-sequence&
&fo:page-number/&
&fo:inline-sequence&
15: XSL Formatting Objects
&/fo:inline-sequence&
&/fo:block&
* text-aligntext-align-last
* azimuthcuecue-aftercue-beforeelevationpausepause-afterpause-beforepitchpitch-rangeplay-duringrichnessspeakspeak-headerspeak-numeralspeak-punctuationspeech-ratestressvoice-familyvolume
* backgroundbackground-attachmentbackground-colorbackground-imagebackground-positionbackground-repeat
* border-before-colorborder-before-styleborder-before-widthborder-after-colorborder-after-styleborder-after-widthborder-start-colorborder-start-styleborder-start-widthborder-end-colorborder-end-styleborder-end-widthborder-top-colorborder-top-styleborder-top-widthborder-bottom-colorborder-bottom-styleborder-bottom-widthborder-left-colorborder-left-styleborder-left-widthborder-right-colorborder-right-styleborder-right-widthborder
border-topborder-bottomborder-leftborder-rightborder-colorborder-styleborder-width
* page-break-insidewidowsorphanswrap-option
* font-familysystem-fontfont-sizefont-size-adjustfont-stretchfont-stylefont-variantfont-weightfont
* countryhyphenatehyphenation-charhyphenation-push-char-counthyphenation-remain-char-countlanguagescripthyphenation-keephyphenation-ladder-count
* text-indent1ast-line-end-indent
* line-heightline-height-shift-adjustmentline-stacking-strategy
* margin-bottommargin-leftmargin-rightmargin-topmarginspace-beforespace-afterstart-indentend-indent
* padding-toppadding-bottompadding-leftpadding-rightpadding-beforepadding-afterpadding-startpadding-end
* positiontopbottomrightleft
* writing-mode
* visibility
* white-space-treatment
fo:bidi-override
fo:character
fo:first-line-marker
fo:inline-graphic
fo:inline-included-container
inline-rule
fo:inline-sequence
fo:list-item-body
fo:list-item-label
fo:page-number
fo:page-number-citation
CSS2XSLXSLCSSfo:inline-included-container
fo:table-and-caption
fo:table-caption
fo:table-column
fo:table-header
fo:table-footer
fo:table-body
fo:table-row
fo:table-cell
fo:tablefo:table-and-captionfo:tablefo:captionfo:tablefo:table-headerfo:table-bodyfo:table-footerfo:table-rowfo:table-cell
fo:footnote
fo:footnote-citation
ruleXSLfo:display-ruleHTML&HR&fo:inline-rulefo:display-rulefo:inline-rule
fo:inline-rulefo:display-rule
1length12pc5in
2rule-orientationescapementhorizontalline-progressionvertical
3rule-style
4rule-thickness1px0.1cm
5vertical-alignbaselinebottommiddlesubsupertext-bottomtext-toptop
6colorpink#FFCCCC
&fo:display-rule
length=&7.5in&
line-thickness=&2pt&
color=&#00FF00&/&
fo:display-rulefo:inline-ruleline-height
XSLfo:display-graphicfo:inline-graphicHTMLIMG
2min-height
3min-width
4max-heigh
5max-width
6scalemaxmax-heightmax-widthmax-uniformmax-heightmax-width
SRC=&logo.gif& WIDTH=&100& HEIGHT=&100&
ALIGN=&right&
ALT=&alt text& BORDER=&0&&
fo:display-graphic
&fo:display-graphic
image=&logo.gif&
height=&100px&
width=&100px& /&
XSLfo:simple-linkWeb
external-destination
internal-destination
indicate-destination
show-destination
space-above-destination-block
space-above-destination-start
external-destinationURIURIGUI
&fo:block&
Be sure to visit the
&fo:simple-link
external-destination=&http://metalab.unc.edu/xml/&&
Leche Web site!
&/fo:simple-link&
&/fo:block&
internal-destinationURIID
indicate-destinationBooleantruefalsefalse100ATOM
show-destinationreplacenewreplacenew
HTMLspace-above-destination-startspace-above-destination-block
CSSHTMLXSL
fo:list-blockfo:list-blockfo:list-itemfo:list-item-label
fo:list-item-bodyfo:list-itemfo:list item-labelfo:list-item-bodyfo:list-item-labelfo:list-item-bodyfo:list-blockfo:list-itemfo:list-itemfo:list-item-labelfo:list-item-bodyfo:list-item
&fo:list-block&
&fo:list-item&
&fo:list-item-label&*&/fo:list-item-label&
&fo:list-item-body&Actinium&/fo:list-item-body&
&/fo:list-item&
&fo:list-item&
&fo:list-item-label&*&/fo:list-item-label&
&fo:list-item-body&Aluminum&/fo:list-item-body&
&/fo:list-item&
&/fo:list-block&
fo:list-item
&fo:list-block&
&fo:list-item-label&*&/fo:list-item-label&
&fo:list-item-body&Actinium&/fo:list-item-body&
&fo:list-item-label&*&/fo:list-item-label&
&fo:list-item-body&Aluminum&/fo:list-item-body&
fo:list-block
1provisional-label-separation; ;
2provisional-distance-between-starts
3space-between-list-rows; ;
fo:list-item
XSL中的基本的表格元素为fo:table-and-caption,这是个块级对象。但将它包装到fo:inline-included-container中就可转变为内联对象,或将它包装到fo:float中就可转变为外联对象。表格模型与HTML的表格模型十分相近。表15-1显示HTML
4.0表元素与XSL格式化对象之间的等价关系:
HTML表格与XSL格式化对象的表格的对比
XSL格式化对象元素
Fo:table-and-caption
无对等元素
fo:table-caption
fo:table-column
无对等元素
fo:table-reader
fo:table-body
fo:table-footer
fo:table-cell
fo:table-row
fo:table-and-caption包括一个可选的fo:caption元素和一个fo:table元素。标题可包含要放在此标题中的任何块级元素。在缺省的情况下,标题放在表之前,但可以通过设置table-and-caption元素的caption-side属性为下列八个值之一而进行调整:
例如,下面是一个将标题放在底部的表格:
&fo:table-and-caption
caption-side=&bottom&&
&fo:table-caption&
font-weight=&bold&
font-family=&Helvetica,
Arial, sans&
font-size=&12pt&&
15 1: HTML Tables vs. XSL Formatting Object Tables
&/fo:block&
&/fo:table-caption&
&fo:table&
table contents go here -&
&/fo:table&
&/fo:table-and-caption&
fo:table元素包括一个可选的fo:table-column、fo:table-header、一个可选的fo:table-footer和一个或多个fo:table-body元素。fo:table-body分成fo:table-row元素。每个fo:table-row分成fo:table-cell元素。fo:table-header和fo:table-footer既可分成fo:table-cell元素,也可分成fo:table-row元素。例如,下面的这个简单的表,与表15-1的第三行相对应:
&fo:table&
&fo:table-header&
&fo:table-cell&
font-family=&Helvetica, Arial, sans&
font-size=&11pt&
font-weight=&bold&&
&/fo:block&
&/fo:table-cell&
&fo:table-cell&
font-family=&Helvetica, Arial, sans&
font-size=&11pt&
font-weight=&bold&&
FO Element
&/fo:block&
&/fo:table-cell&
&/fo:table-header&
&fo:table-body&
&fo:table-row&
&fo:table-cell&
font-family=&Courier, monospace&&
&/fo:block&
&/fo:table-cell&
&fo:table-cell&
font-family=&Courier, monospace&&
fo:table-and-caption
&/fo:block&
&/fo:table-cell&
&/fo:tdble-row&
&fo:table-row&
&fo:table-cell&
&fo:block&no
equivalent&/fo:block&
&/fo:table-cell&
&fo:table-cell&
font-family=&Courier, monospace&&
&/fo:block&
&/fo:table-cell&
&/fo:table-row&
&/fo:table-body&
&/fo:table&
设置n-columns-spanned和n-rows-spanned特性为一整数,表示要跨越的行或列数,这时,表的单元格就可以跨越多行和多列。可选的column-number特性可以改变从哪一列开始合并单元格,缺省值是当前列。
使用通常的边界属性(将在以后讨论),就可以在表的各部分周围绘制边框。empty-cells特的值可取show或hide,如果要在无内容的单元格周围绘制边框,则为show;否则为hide。缺省值为show。
大多数表的各部分不使用标准的宽度和高度属性,而是具有等价的属性。可以省略下面当中的任何一个或所有的特性,在此情况下,格式化程序只将每个部分调整成合适的大小:
table:table-width,table-height
table-caption:caption-width,由格式化程序自动确定高度
table-row:row-height,由内容确定宽度
table-cell:cell-height,column-number,column-width,n-columns-spanned,n-rows-spanned
fo:table-row元素有可选的may-break-after-row和may-break-before-row特性,其值为yes或no,此值确定在行前和行后是否允许有分页符。这两个特性的缺省值都为yes。
当一长表扩展到多页时,有时候在每页上重复页眉和页脚。使用fo:table元素的table-omit-middle-header和table-omit-middle-footer特性,可指定这种行为。值为yes表示页眉或页脚一页一页地重复。值为no表示页眉或页脚不是一页一页地重复。缺省值为no。
可选的fo:table-column元素是一空元素,它为一特定列中的所有单元格指定值。使用此元素的单元格由column-number特性来识别。fo:table-column并不真正地包含任何单元格。将n-columns-spanned属性设置成大于1的整数时,fo:table-column可将属性应用于多个连续的列中。在fo:table-column中进行设置的最常用的属性是column-width(有符号的长度),但标准的边界、贴边以及背景属性(下面讨论)也可以设置。
fo:character格式化对象使用输出文档中的不同字符来代替输入文档中特定字符或字符串。例如,可以使用此对象在美语小数点与法语小数逗号之间相互转换。character特性指定使用什么字符来替换。例如,下面的模板规则将PASSWORD元素中的字符替换为*:
&xsl:template
match=&PASSWORD&&
&fo:character
character=&*&&
&xsl:value-of
select=&.&/&
&/fo:character&
&/xsl:template&
但是,这种用法是很少见的。fo:character元素的主要目的是为了便于格式化引擎可将各个字符和字形作为其自身的元素来看待。如果不是编写格式化引擎,那么就可以忽略此元素。
序列对内联或块级框的布局没有任何特别的影响。它们只是放置格式化属性(如font-style或text-indent)的元素。
fo:display-sequence格式化对象元素是一容器,它将块级对象成组在一起。事实上,它只能保存块级元素,如fo:display-graphic和fo:block。不能包含内联元素和原文本。
fo:inline-sequence格式化对象元素是将内联对象成组在一起的容器。它不能包含块级元素。例如,可以像下面这样,使用inline-sequence元素将样式加到页脚的各部分中:
id=&q2& flow-name=&xsl-after&&
font-style=&bold& font-size=&10pt&
font-family=&Arial,
Helvetica, sans&&
&fo:inline-sequence
font-style=&italic&
text-align=&start&&
&/fo:inline-sequence&
&fo:inline-sequence
text-align=&centered&&
&fo:page-number/&
&/fo:inline-sequence&
&fo:inline-sequence
text-align=&right&&
15: XSL Formatting Objects
&/fo:inline-sequence&
&/fo:block&
&/fo:flow&
fo:footnote元素表示脚注。作者将fo:footnote元素放在文本流中,脚注引用(1或*)出现的地方。fo:footnote元素由fo:footnote-reference和包含脚注文本的块级元素组成。但是,只有脚注引用才是内联式插入。格式化程序将注释文本放在此页的后区(通常为页脚)中。
例如,下面的脚注使用星号作为脚注标记,并引用JavaBeans, Elliotte Rusty Harold IDG Books, Foster City, 1998), p.
147。使用标准的XSL属性(如font-size和vertical-align)按照习惯方式来格式化注释标记和文本。
&fo:footnote&
&fo:footnote-reference
font-size=&smaller&
vertical-align=&super&&
&/fo:footnote
reference&
font-size=&smaller&&
&fo:inline-sequence
font-size=&smaller&
vertical-align=&super&&
&/fo:inline-sequence&
&fo:inline-sequence
font-style=&italic&&JavaBeans&/fo:inline-sequence&,
Rusty Harold
Books, Foster City, 1998), p. 147
&/fo:block&
&/fo:footnote&
格式化对象符号集不提供自动编号和引用脚注的任何方法,但在变换样式单中巧妙地使用xsl:number即可做到这一点。XSL变换同样也可以很容易地实现尾注(end note)。
fo:floatfo:float
&fo:block&
PDF files are themselves ASC11 text,
isn't a book about PostScript, so there's
to be gained by showing you the exact
the above command. If you're curious,
PDF file in any text editor.
Figure 15-1
&fo:float&
&fo:display-graphic
image=&0l.jpg&
height=&485px&
width=&623px& /&
font-family=&Helvetica, sans&&
&fo:inline
sequence font-weight=&bold&&
&/fo:inline-sequence&
file displayed in Netscape Navigator
&/fo:block&
&/fo:float&
rendered file displayed in
Navigator using the Acrobat plug-in.
&/fo:block&
200fo:display-graphicfont-stylehrefprovisional-label-separationfo:list-label14Timesfo:block14Times
XSLCSSCSSfont-familyXSLfont-family1213XSL
XSLautoitalictransparenttrue5px-5.0cmhttp: //www.w3.org/index.htmlXSL2415-2
http://www.w3
.org/index.html /index.html/ ../index.html
Roman, Times, serif
Enumeration
| train | car | horse)
and Ethel Castles don't have phones.
idXMLIDXMLXSLgenerate-id()
languageISO 639enEnglishlaLatinnoneuse-documentxml:langGallic Wars
id=&versel.l.l& language=&la&&
est omnis divisa in partes tres,
unam incolunt Belgae, aliam Aquitani,
qui ipsorum lingua Celtae, nostra Galli appellantur
&/fo:block&
keep-with-next
keep-with-previous
break-before
break-after
inhibit-line-breaks
keep-with-nextkeep-with-previous
break-beforecolumnpageodd-pageeven-pagenoneauto-pagebreak-afterbreak-beforeSONNET
&xsl:template
match=&SONNET&&
break-before=&page& break-after=&page&&
&xsl:apply-templates/&
&/fo:block&
&/xsl:template&
inhibit-line-breakstrue
“”mother-in-law
hyphenatetrue
hyphenation-charUnicode-
hyphenation-keepcolumnnonepagespread
hyphenation-ladder-count
hyphenation-push-char-count
hyphenation-remain-char-count
hyphenate=true
hyphenation-char=&-&
hyphenation-keep=&none&
hyphenation-ladder-count=&2&
hyphenation-push-char-count=&4&
hyphenation-remain-char-count=&4&
content ...
&/fo:block&
vertical-alignCSS2
8text-bottom
vertical-align
start-indentend-indenttext-indentlast-line-end-indentstart-indentend-indenttext-indentlast-line-end-indentstart-indenttext-indenthanging indent0.5
text-indent=&0.5in&&
line of this paragraph is indented
&/fo:block&
start-indent=&l.0in& end-indent=&l.0in&&
is offset one inch from both edges.
&/fo:block&
fo:blockfo:list-item-body
colorCSScolor&Lions and tigers and bears, oh
&fo:inline-sequence
color=&#FFCCCC&&
tigers and bears, oh my!
&/fo:inline-sequence&
font-family
font-size-adjustxnone
font-stretch&&condensedexpandedextra-condensedextra-expandednarrowernormalsemi-condensedsemi-expandedultra-condensedultra-expandedwider
font-styleitalicnormalobliquereverse-normalreverse-oblique
font-variantnormalsmall-caps
font-weight100200300400500600700800900boldbolderlighternormal
text-transform
text-transformCSS
capitalize
text-shadow
text-shadowshadow
&fo:inline-seqence
text-shadow=&FFFF66&&
sentence is yellow.
&/fo:inline-sequence&
text-decoration
text-decorationCSS2text-decoration
line-through
score-space
Scoringunderlineline throughdouble strike-throughscore-spaceIf score-space is true, an
underlined sentence looks like this.score-space
trueIf Score-space is false, an underlined scntence looks uke this.score-spacefalse
����
letter-spacing
letter-spacing=&1.5px&&
fairly loose text
&/fo:block&
word-spacing
word-spacing=&0.3cm&&
pretty loose text.
&/fo:block&
line-height
* line-height-shift-adjustmentconsider-shiftsdisregard-shifts
line-stacking-strategyline-heightCSSfont-heightfont-height-override-beforefont-height-override-aftermax-height
* font-height-override-afteruse-font-metrics
font-height-override-beforeuse-font-metrics
Mary WollstonecraftOf the Rights of Woman
font-size=&12pt& line-height=&24pt&&
present state of society it appears necessary to go
first principles in search of the most simple truths,
dispute with some prevailing prejudice every inch of
To clear my way, I must be allowed to ask some plain
questions,
and the answers will probably appear as
unequivocal
as the axioms on whic
when entangled with various motives of action, they
formally contradicted, either by the words or conduct
&/fo:block&
text-aligntext-align-last
5page-inside
6page-outside
text-align-laststartendjustifiedrelativerelativetext-aligntext-alignjustified
whitespace-treatment
xsl:strip-space
wrap-option
wrap-option
background-colortransparent
background-imageURInone
background-attachmentfixedscroll
background-positioncenterleftrightbottommiddletop
background-repeatrepeatno-repeatrepeat-xrepeat-y
background-imagebackground-positionbackground-repeatbackground-color
background-image=&/bg/paper.gif&
background-position=&0,0&
background-repeat=&repeat&
background-color=&white&&
strings walk into a bar ...
&/fo:block&
CSSborder-XXX-bottomborder-XXX-topborder-XXX-leftborder-XXX-rightXSLborder-XXX-beforeborder-XXX-afterborder-XXX-startborder-XXX-end31
* border-colorborder-before-colorborder-after-colorborder-start-colorborder-end-colorborder-top-colorborder-bottom-colorborder-left-colorborder-right-color
* border-widthborder-before-widthborder-after-widthborder-start-widthborder-end-widthborder-top-widthborder-bottom-widthborder-left-widthborder-right-width
* border-styleborder-before-styleborder-after-styleborder-start-styleborder-end-styleborder-top-styleborder-bottom-styleborder-left-styleborder-right-style
* borderborder-topborder-bottomborder-leftborder-rightborder-colorborder-styleborder-width
border-before-color=&blue& border-before-width-&2px&
border-after-color=&blue&
border-after-width=&2px&
border-start-color=&blue&
border-start-width=&2px&
border-end-color=&blue&
border-end-width=&2px&&
strings walk into a bar ...
&/fo:block&
CSSpadding-bottompadding-toppadding-leftpadding-rightXSLpadding-beforepadding-afterpadding-startpadding-end
padding-after
padding-before
padding-bottom
padding-end
padding-left
padding-start
padding-right
padding-top
padding-before=&0.5cm& padding-after=&0.5cm&
padding-start=&0.5cm&
padding-end=&0.5cm&&
strings walk into a bar ...
&/fo:block&
margin-top
margin-bottom
margin-left
margin-right
space-before
space-after
start-indent
end-indent
space-beforespace-aftermargin-topmargin-bottomstart-indentpadding-leftborder-left-widthmargin-leftend-indentpadding-rightborder-right-widthmargin-right15-3
start-indent=&0.5cm& end-indent=&0.5cm&&
strings walk into a bar ...
&/fo:block&
space-start
forcespace-endspace-start0
discardretain
max-height
heightwidthautomax-heightmax-width
height=&2in& width=&2in&&
strings walk into a bar ...
&/fo:block&
overflowvisibleclip
clip=rect(top_offset
right_offset bottom_offset left_offset)
top_offsetright_offsetbottom_offsetleft_offset
reference-orientation
reference-orientation90° 90° 090180270-90-180-27090°
reference-orientation=&90&&
&/fo:block&
writing-mode14
3lr-alternating-rl-bt
4lr-alternating-rl-tb
6lr-inverting-rl-btS
7lr-inverting-rl-tbS
13tb-rl-in-rl-pairs
14use-page-writing-mode
15.14.6.10
orphanwidoworphanswidowsorphans3
&fo:simple-page-master
page-master-name=&even&
orphans=&3&
page-height=&8.5in& page width=&11in&
cue-before
pause-after
pause-before
pitch-range
play-during
speak-header
speak-numeral
speak-punctuation
speech-rate
voice-family
13&2&XSLCSS2
* XSLXMLXSLXML
* fo:rootfo:layout-master-setfo:page-sequence
fo:layout-master-setfo:simple-page-master
fo:page-sequencefo:sequence-specifierfo:static-contentfo:flowfo:flowfo:sequence-specifierfo:static-content
fo:display-rulefo:inline-rule
fo:display-graphicURLfo:inline-graphicURL
fo:simple-linkURL
* fo:list-blockfo:list-itemfo:list-itemfo:list-item-labelfo:list-item-body
fo:page-number
fo:character
fo:display-sequencefo:inline-sequence
fo:footnote
fo:floatpullquote
* 200XSLCSSXSL
XLinkHTMLAXSLfo:display-linkfo:inline-link}

我要回帖

更多关于 26个字母开头的单词 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信