{"id":7501,"date":"2017-09-06T07:59:48","date_gmt":"2017-09-05T22:59:48","guid":{"rendered":"http:\/\/blog.antenna.co.jp\/ILSoft2\/?p=7501"},"modified":"2017-09-06T07:59:48","modified_gmt":"2017-09-05T22:59:48","slug":"xsl-fo-margin-top-%e3%81%a8-space-before","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/7501\/","title":{"rendered":"[XSL-FO] margin-top \u3068 space-before"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002<br \/>\n<a href=\"https:\/\/www.antenna.co.jp\/AHF\/\">AH Formatter<\/a>\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3067\u3059\u3002<br \/>\n\u5148\u65e5\u3001\u79c1\u305f\u3061\u304c\u66ae\u3089\u3059\u9577\u91ce\u770c\u3067\u3082J\u30a2\u30e9\u30fc\u30c8\u306e\u97f3\u304c\u9cf4\u308a\u97ff\u3044\u3066\u9a5a\u304d\u307e\u3057\u305f\u3002<br \/>\n\u671d\u8d77\u304d\u306a\u3044\u3053\u3068\u3067\u5b9a\u8a55\u306e\u3042\u308b\u308f\u305f\u304f\u3057\u3067\u3059\u304c\u3001\u4e00\u767a\u3067\u98db\u3073\u8d77\u304d\u307e\u3057\u305f\uff08^^;<br \/>\n\u4e00\u77ac\u3067\u8074\u3044\u305f\u4eba\u3092\u4e0d\u5b89\u306b\u3055\u305b\u308b\u3042\u306e\u97f3\uff1f\u30e1\u30ed\u30c7\u30a3\uff1f\u3092\u8003\u3048\u305f\u4eba\u3001\u3042\u308b\u610f\u5473\u3059\u3054\u3044\u306a\u3041\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3082\u6016\u304b\u3063\u305f\uff5e\u3002<\/p>\n<p>\u4e08\u592b\u306a\u5efa\u7269\u304b\u5730\u4e0b\u306b\u907f\u96e3\u3057\u3066\u304f\u3060\u3055\u3044\u3001\u3063\u3066\u8a00\u308f\u308c\u3066\u3082<br \/>\n\u7530\u820e\u306a\u3093\u3067\u3002\u3002\u3002\u3002\u3002\u3002\u5730\u4e0b\u304c\u3002\u3002\u3002\u3002\u306a\u3044\u3002\u3002\u3002\u3002\uff08\u7b11\uff09<\/p>\n<p>\u3055\u3066\u3001\u4eca\u65e5\u306f margin-top \u3068 space-before \u306b\u3064\u3044\u3066\u3001\u3067\u3059\u3002<br \/>\nmargin-top \u306f\u7686\u3055\u307e\u3054\u5b58\u3058\u306e\u3068\u304a\u308a\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d6\u30ed\u30c3\u30af\u306e\u4e0a\u7aef\u5074\u306b\u30a2\u30ad\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\nXSL-FO \u3067\u306f\u3082\u3046\u3072\u3068\u3064 space-before \u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306f &#8220;before&#8221; \u306a\u306e\u3067\u30a8\u30ea\u30a2\u306e before\u5074\u306e\u30a2\u30ad\u3068\u3044\u3046\u3053\u3068\u3067<br \/>\n&#8220;top&#8221;\uff08\u7d76\u5bfe\u4f4d\u7f6e\u6307\u5b9a\uff09\u3068\u306f\u3061\u3087\u3063\u3068\u610f\u5473\u5408\u3044\u304c\u9055\u3063\u3066\u304d\u307e\u3059\u304c<br \/>\n\u901a\u5e38\u306e\u6a2a\u66f8\u304d\uff08lr-tb\uff09\u306e\u6587\u66f8\u3067\u3059\u3068 &#8220;before&#8221; \u3068 &#8220;top&#8221; \u306f\u540c\u3058\u3067\u3059\u306e\u3067<br \/>\n\u3053\u3053\u3067\u306f\u540c\u3058\u3082\u306e\u3068\u3057\u3066\u304a\u8a71\u3057\u3057\u307e\u3059\u3002<\/p>\n<p>space-before \u3092\u4f7f\u3063\u305f\u4fbf\u5229\u306a\u30b1\u30fc\u30b9\u306f\u3053\u3093\u306a\u5834\u5408\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.antenna.co.jp\/AHF\/blog\/201709\/space-before.png\" alt=\"space-before \u3092\u4f7f\u3063\u305f\u4fbf\u5229\u306a\u30b1\u30fc\u30b9\" \/><\/p>\n<p>&#8220;1.1.1 Tree Transformations&#8221; \u3068 &#8220;1.1.2 Formatting&#8221; \u306e\u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\u306e\u30d6\u30ed\u30c3\u30af\u306b\u306f<br \/>\n\u3069\u3061\u3089\u3082 space-before=&#8221;24pt&#8221; \u304c\u6307\u5b9a\u3057\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n\u30da\u30fc\u30b8\u9014\u4e2d\u306b\u3042\u308b\u5834\u5408\u306f\u524d\u306e\u30d6\u30ed\u30c3\u30af\u3068\u306e\u533a\u5207\u308a\u3068\u3057\u3066\u30a2\u30ad\u3092\u4f5c\u308a\u3001<br \/>\n\u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\u304c\u30da\u30fc\u30b8\u306e\u5148\u982d\u306b\u3042\u308b\u5834\u5408\u306b\u306f\u30a2\u30ad\u306f\u4e0d\u8981\u3068\u3044\u3046\u3053\u3068\u3067\u30da\u30fc\u30b8\u4e0a\u7aef\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3002<br \/>\n\u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\u306e\u30d6\u30ed\u30c3\u30af\u304c\u3069\u3053\u306b\u4f4d\u7f6e\u3059\u308b\u304b\u3001\u30da\u30fc\u30b8\u306e\u5148\u982d\u306b\u304f\u308b\u304b\u3069\u3046\u304b\u306f<br \/>\n\u7d44\u7248\u3057\u3066\u307f\u306a\u3044\u3068\u308f\u304b\u3089\u306a\u3044\u3067\u3059\u304c\u3001<br \/>\nspace-before \u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068\u3053\u306e\u3088\u3046\u306a\u7d44\u7248\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u632f\u308b\u821e\u3044\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u304c\u3001<br \/>\nspace-before \u306e .conditionality \u3067\u3059\u3002<br \/>\n.conditionality \u306e\u5024\u306f &#8220;discard&#8221; \u3068 &#8220;retain&#8221; \u3067\u3059\u3002<br \/>\n\u65e2\u5b9a\u5024\u306f &#8220;discard&#8221; \u3067\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n&#8220;retain&#8221; \u306e\u5834\u5408\u306f \u5e38\u306b\uff08\u30a2\u30ad\u3092\uff09\u6b8b\u3059 \u3068\u3044\u3046\u610f\u5473\u306a\u306e\u3067<br \/>\n\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3082\u3001\u30da\u30fc\u30b8\u5148\u982d\u306b\u30a2\u30ad\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>XSL-FO \u3067\u66f8\u304f\u5834\u5408\u306f\u3001space-before.conditionality=&#8221;discard&#8221; \u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\uff08\u65e2\u5b9a\u5024\u304c discard \u306a\u306e\u3067\u308f\u3056\u308f\u3056\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3053\u3046\u306a\u308a\u307e\u3059\uff09<\/p>\n<p>XSL-FO \u306f\u5143\u3005 CSS2\uff082.1\uff09\u3092\u5143\u306b\u8003\u3048\u3089\u308c\u3066\u3044\u308b\u306e\u3067<br \/>\n\u4ed5\u69d8\u306e\u4e92\u63db\u6027\u306e\u305f\u3081\u306b margin-top \u304c\u6b8b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001margin-top \u3068 space-before \u306e\u3069\u3053\u304c\u9055\u3046\u306e\u304b\u3068\u3044\u3046\u3068\u3001<br \/>\n\u3053\u306e .conditionality \u3067\u3059\u3002<\/p>\n<p>margin-top \u306b\u306f .conditionality \u306e\u6982\u5ff5\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6307\u5b9a\u3082\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3055\u3089\u306b \uff08lr-tb \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u304a\u3044\u3066\uff09margin-top \u304c\u6307\u5b9a\u3055\u308c\u305f\u5834\u5408\u306f<br \/>\nspace-before.conditionality \u306f &#8220;retain&#8221; \u304c\u6307\u5b9a\u3055\u308c\u305f\u3082\u306e\u3068\u3057\u3066\u6271\u3046\u3068\u3044\u3046\u3053\u3068\u304c<br \/>\nXSL-FO \u306e\u4ed5\u69d8\u3067\u6c7a\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nspace-before \u306e\u65b9\u304c\u5b9f\u7528\u7684\u306b\u8003\u3048\u3089\u308c\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>CSS \u306f\u4eca\u306e\u3068\u3053\u308d\u3001\u6b8b\u5ff5\u306a\u304c\u3089 space-before \u306f\u307e\u3060\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\nCSS3 \u306e\u4ed5\u69d8\u7b56\u5b9a\u304c\u9032\u3093\u3067\u3044\u307e\u3059\u306e\u3067\u5c06\u6765\u7684\u306b\u306f\u691c\u8a0e\u3055\u308c\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>\u25a0XSL-FO\u306e\u4ed5\u69d8\u7d39\u4ecb\uff1a<a href=\"https:\/\/www.antenna.co.jp\/AHF\/ahf_publication\/index.html#fo-basis\">\u300eXSL-FO \u306e\u57fa\u790e \u7b2c2\u7248 &#8211; XML \u3092\u7d44\u7248\u3059\u308b\u305f\u3081\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u4ed5\u69d8\u300f\uff08\u30af\u30ea\u30c3\u30af\u3067\u7d39\u4ecb\u6587\u7ae0\u3078\uff09<\/a><\/p>\n<p>\u3000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002 AH Formatter\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3067\u3059\u3002 \u5148\u65e5\u3001\u79c1\u305f\u3061\u304c\u66ae\u3089\u3059\u9577\u91ce\u770c\u3067\u3082J\u30a2\u30e9\u30fc\u30c8\u306e\u97f3\u304c\u9cf4\u308a\u97ff\u3044\u3066\u9a5a\u304d\u307e\u3057\u305f\u3002 \u671d\u8d77\u304d\u306a\u3044\u3053\u3068\u3067\u5b9a\u8a55\u306e\u3042\u308b\u308f\u305f\u304f\u3057\u3067\u3059\u304c\u3001\u4e00\u767a\u3067\u98db\u3073\u8d77\u304d\u307e\u3057\u305f\uff08^^; \u4e00\u77ac\u3067\u8074\u3044\u305f\u4eba\u3092\u4e0d\u5b89 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,48,16],"tags":[52,254,261,661],"class_list":["post-7501","post","type-post","status-publish","format-standard","hentry","category-ah-formatter","category-xsl-fo","category-structured-doc","tag-ah-formatter","tag-xml","tag-xsl-fo","tag-661"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/7501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/comments?post=7501"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/7501\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=7501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=7501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=7501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}