XSL-FO ဘလက် (ဘလက်)

XSL-FO ထုတ်လုပ်မှု သည် ဘလက် နေရာများ တွင် တည်ရှိသည်。

XSL-FO စာရင်း၊ လှုပ်ရှားခြင်း နှင့် ဘလက်

ပါဝင်သော “ဘလက်” သည် “စာရင်း” သို့ “လှုပ်ရှား” ပြီးနောက် သတင်းစကား ထုတ်လုပ်သည်。

XSL-FO ထုတ်လုပ်မှု သည် အသုံးပြုသော <fo:block> အကိရိယာ တွင် အသုံးပြုသည်၊ <fo:block> အကိရိယာ သည် <fo:flow> အကိရိယာ တွင် အသုံးပြုသည်၊ <fo:flow> အကိရိယာ သည် <fo:page-sequence> အကိရိယာ တွင် အသုံးပြုသည်:

<fo:page-sequence>
  <fo:flow flow-name="xsl-region-body">
    <fo:block>
      <!-- Output goes here -->
    </fo:block>
  </fo:flow>
</fo:page-sequence>

块区域的属性

块是位于矩形框中的输出序列:

<fo:block border-width="1mm">
这个输出块周围有一条一毫米的边框。
</fo:block>

由于块区域是矩形框,所以可共享许多公共的区域属性:

  • space before 和 space after
  • margin
  • border
  • padding
  • space before

图示:

space beforespace after 是块与块之间起分割作用的空白。

margin 是块外侧的空白区域。

border 的区域外部边缘的矩形。其四个边均可有不同的宽度。它也可被填充为不同的颜色和背景图像。

padding 是位于内容区域与边框之间的区域。

内容区域可包含实际的内容,比如文本、图片、图形等等。

块边距

  • margin
  • margin-top
  • margin-bottom
  • margin-left
  • margin-right

块边框

边框样式属性:

  • border-style
  • border-before-style
  • border-after-style
  • border-start-style
  • border-end-style
  • border-top-style ((အမြတ်သို့မဟုတ် border-before)
  • border-bottom-style (အမြတ်သို့မဟုတ် border-after)
  • border-left-style (အမြတ်သို့မဟုတ် border-start)
  • border-right-style (အမြတ်သို့မဟုတ် border-end)

边框颜色属性:

  • border-color
  • border-before-color
  • border-after-color
  • border-start-color
  • border-end-color
  • border-top-color (အမြတ်သို့မဟုတ် border-before)
  • border-bottom-color (အမြတ်သို့မဟုတ် border-after)
  • border-left-color (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-start)
  • border-right-color (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-end)

border width attributes:

  • border-width
  • border-before-width
  • border-after-width
  • border-start-width
  • border-end-width
  • border-top-width (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-before)
  • border-bottom-width (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-after)
  • border-left-width (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-start)
  • border-right-width (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် border-end)

block padding

  • padding
  • padding-before
  • padding-after
  • padding-start
  • padding-end
  • padding-top (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် padding-before)
  • padding-bottom (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် padding-after)
  • padding-left (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် padding-start)
  • padding-right (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် padding-end)

block background

  • background-color
  • background-image
  • background-repeat
  • background-attachment (scroll သို့မဟုတ် fixed)

block style attributes:

အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် အသုံးပြုသော အကျွင်း အစိတ်အစိတ်

<fo:block
  font-size="12pt"
  font-family="sans-serif">
This block of output will be written in a 12pt sans-serif font.
</fo:block>

အကျွင်း အချက်အလက်

  • font-family
  • font-weight
  • font-style
  • font-size
  • font-variant

အခြား အကျွင်းသုံး

  • text-align
  • text-align-last
  • text-indent
  • start-indent
  • end-indent
  • wrap-option (အဆိုပါ ပုံနှိပ်သတ်မှတ်သည် အဆိုပါ လက်ဆုံးပြောင်းလဲသည်)
  • break-before (စက်သုံး ပုံနှိပ်သတ်မှတ်သည်)
  • break-after (定义分页符,page breaks)
  • reference-orientation (定义 90" 内的文字旋转)

အကျိုးသက်

<fo:block
    font-size="14pt" font-family="verdana" color="red"
    space-before="5mm" space-after="5mm">
W3School
</fo:block>
<fo:block
    text-indent="5mm"
    font-family="verdana" font-size="12pt"
    space-before="5mm" space-after="5mm">
CodeW3C.com တွင် သင့် လိုအပ်သော ဝန်ဆောင်ရေး လုပ်ငန်း အား တွေ့ရပါလိမ့်မည်
လိုအပ်ချက်မှာ အခြေခံ HTML နှင့် XHTML မှ အဆင့်မြင့်သော XML နှင့် XSL နှင့် မီဒီယာ
နှင့် WAP.
</fo:block>

ရလဒ်:

အထူးသဖြင့် ကျယ်ပြန်းသော အချက်အလက် နှင့် အခြေခံ အချက်အလက် ကို ပေါင်းစပ်လိုက်သည်။

ပုံမှာ ကျယ်ပြန်းသော အချက်အလက် နှင့် အခြေခံ အချက်အလက် ကို ပေါင်းစပ်လိုက်သည်။

XSLT က အချက်အလက် အသုံးပြုပြီး အခြေခံ အချက်အလက် ကို ပြင်ဆင်ပြီး အခြေခံ အချက်အလက် ကို လက်ခံထားပါ။

ဒီ လုပ်ငန်းကို နောက်ပိုင်း စာစဉ်များ တွင် ကျော်ကြားပါ သည်။ အခြေခံ အချက်အလက် အသုံးပြုပြီး အခြေခံ အချက်အလက် အသုံးပြုပြီး လက်ခံထားသော အခြေခံ အချက်အလက် ကို လက်ခံထားပါ။