{"id":15371,"date":"2022-04-25T14:56:34","date_gmt":"2022-04-25T05:56:34","guid":{"rendered":"https:\/\/blog.antenna.co.jp\/ILSoft2\/?p=15371"},"modified":"2022-04-25T14:56:34","modified_gmt":"2022-04-25T05:56:34","slug":"dita-ot%e3%81%a7%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e6%9b%b8%e3%81%8f%e3%81%aa%e3%82%89coderef%e3%81%8c%e4%be%bf%e5%88%a9","status":"publish","type":"post","link":"https:\/\/blog.antenna.co.jp\/ILSoft2\/archives\/15371\/","title":{"rendered":"DITA-OT\u3067\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306a\u3089coderef\u304c\u4fbf\u5229"},"content":{"rendered":"<p>DITA\u3067\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u304d\u306fcodeblock\u8981\u7d20\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08HTML5\u3067\u306f\u5f15\u7528\u30d6\u30ed\u30c3\u30af\u3084codeblock\uff08pre\/code\uff09\u3082figure\u306e\u5b50\u5b6b\u3068\u3057\u3066\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u304c\u3088\u304f\u898b\u3089\u308c\u307e\u3059\u3002\u500b\u4eba\u7684\u306a\u611f\u899a\u3068\u3057\u3066\u3001\u82f1\u8a9e\u3060\u3068\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306b\u300cfigure 1\u300d\u306e\u3088\u3046\u306b\u3057\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u3066\u3082\u9055\u548c\u611f\u306f\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u65e5\u672c\u8a9e\u3067\u300c\u56f31\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3068\u9055\u548c\u611f\u304c\u3042\u308a\u307e\u3059\u3002\uff09<\/p>\n<p>\u3055\u3066\u3001codeblock\u306e\u4e2d\u3092\u3069\u3046\u66f8\u304f\u304b\u306b\u3064\u3044\u3066\u3001\u65b9\u91dd\u306f\u304a\u304a\u3080\u306d\u6b21\u306e2\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u76f4\u63a5\u66f8\u304f\u3002XML\u306e&lt;\u3084&gt;\u306f\n<ul>\n<li>&amp;lt;\u306e\u3088\u3046\u306b\u3057\u3066\u66f8\u304f<\/li>\n<li>xml-mention\u30c9\u30e1\u30a4\u30f3\u306e\u30bf\u30b0\u3092\u4f7f\u3063\u3066\u66f8\u304f<\/li>\n<\/ul>\n<\/li>\n<li>coderef\u3092\u4f7f\u3046\n<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306f\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u306b\u3082\u3042\u308b\u3088\u3046\u306b\u3001coderef\u3092\u4f7f\u3046\u65b9\u6cd5\u304c\u4fbf\u5229\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n<p>DITA-OT\u3067\u306fcodeblock\u3067\u306e\u51e6\u7406\u306b\u3064\u3044\u3066\u3001\u4ed5\u69d8\u304b\u3089\u62e1\u5f35\u3057\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u30bf\u30a4\u30c8\u30eb\u304c\u300cDITA\u3067codeblock\u3092\u66f8\u304f\u3068\u304d\u306f\uff5e\u300d\u3067\u306f\u306a\u3044\u306e\u306fDITA\u306e\u4ed5\u69d8\u3067\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u306a\u304a\u3001\u8a18\u4e8b\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u8a66\u884c\u3057\u305f\u74b0\u5883\u306fDITA-OT 3.7.1\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.dita-ot.org\/dev\/reference\/extended-functionality.html\">Extended codeblock processing DITA-OT<br \/>\n<\/a><\/p>\n<p>\u62e1\u5f35\u5185\u5bb9\u306f\u5e7e\u3064\u304b\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u5148\u306b\u8ff0\u3079\u305f\u901a\u308a\u3001\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u306e\u306fcoderef\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>codeblock\u306b\u306f\u30c6\u30ad\u30b9\u30c8\u3092\u305d\u306e\u307e\u307e\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001XML\u30bf\u30b0\u3001\u3068\u3044\u3046\u304b&lt;\u306a\u3069\u304c\u304d\u3063\u3061\u308a\u51e6\u7406\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3001XML\u3084HTML\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3068\u3057\u3066\u4f8b\u793a\u3059\u308b\u306e\u306f\u7d50\u69cb\u5927\u5909\u3067\u3059\u3002\u305d\u3053\u3067coderef\u3067\u3059\u3002<\/p>\n<p>coderef\u306f\u5916\u90e8\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\uff08\u4e3b\u306b\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\uff09\u53c2\u7167\u3057\u3001\u7d50\u679c\u3092\u5c55\u958b\u3057\u3066\u307b\u3057\u3044\u5834\u5408\u306b\u4f7f\u3046\u30bf\u30b0\u3067\u3059\u3002@href\u3067\u53c2\u7167\u3059\u308b\u5148\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002XML\u3092\u53c2\u7167\u3059\u308b\u5834\u5408\u3001@format=&#8221;xml&#8221;\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>coderef\u306e\u7b2c\u4e00\u306e\u5229\u70b9\u306f&lt;\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u306a\u304f\u3066\u6e08\u3080\u70b9\u3067\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306fDITA\u4ed5\u69d8\u306e\u3046\u3061\u3067\u3059\u3002<\/p>\n<figure><figcaption>coderef\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af<\/figcaption><pre><code>&lt;codeblock xml:space=\"preserve\">&lt;coderef href=\"hoge.xml\" \/&gt;&lt;\/codeblock&gt;<\/code><\/pre>\n<\/figure>\n<p>\u305f\u3060\u3001\u5b9f\u969b\u306eXML\u30d5\u30a1\u30a4\u30eb\u3068\u3044\u3046\u306e\u306f\u7d50\u69cb\u884c\u6570\u304c\u5d69\u307f\u307e\u3059\u3002\u300ccoderef\u3067\u53c2\u7167\u3059\u308b\u7528\u306b\u30b3\u30fc\u30c9\u7247\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3057\u3066\u2026\u2026\u300d\u3068\u3044\u3046\u306e\u306f\u30e1\u30a4\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u304b\u3089\u3059\u308b\u3068\u3042\u307e\u308a\u6b53\u8fce\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3053\u3067DITA-OT\u306e\u6a5f\u80fd\u306b\u3088\u3063\u3066\u884c\u6570\u3092\u5236\u9650\u3057\u307e\u3059\u3002<\/p>\n<p>coderef\u306e\u62e1\u5f35\u8a18\u6cd5\u306f#\u304b\u3089\u7d9a\u304f\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u306b\u3088\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u308c\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3001DITA-OT\u4ee5\u5916\u306eDITA\u51e6\u7406\u7cfb\u3067\u4f7f\u308f\u308c\u3066\u3082\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u884c\u304c\u51fa\u529b\u3055\u308c\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002\u2026\u2026\u7d50\u69cb\u5927\u5909\u306a\u306e\u3067\u3001keyref\u3067\u5207\u308a\u51fa\u3057\u3066\u5207\u308a\u63db\u3048\u53ef\u80fd\u306b\u3057\u3066\u304a\u304f\u306e\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>\u884c\u6570\u306e\u8a18\u6cd5\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308b\u901a\u308a\u3001<code>#line-range(&lt;start&gt;,&lt;stop&gt;)<\/code>\u307e\u305f\u306fRFC 5147\u306e\u8a18\u6cd5\u3067<code>#line=&lt;start&gt;&lt;end&gt;<\/code>\u306e\u3088\u3046\u306b\u3057\u3066\u958b\u59cb\u884c\u3001\u7d42\u4e86\u884c\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u3067\u5341\u5206\u4fbf\u5229\u3067\u3059\u304c\u3001\u300c\u5143\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5f04\u3063\u305f\u3089\u30c8\u30d4\u30c3\u30af\u30d5\u30a1\u30a4\u30eb\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u884c\u4f4d\u7f6e\u3082\u5909\u66f4\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u3060\u308d\u3046\u304b\u300d\u3068\u7591\u554f\u3092\u6301\u305f\u308c\u305f\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u305d\u308c\u306f\u3042\u307e\u308a\u30e1\u30a4\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u304c\u826f\u304f\u3042\u308a\u307e\u305b\u3093\u306d\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4efb\u610f\u6587\u5b57\u5217\u3092\u884c\u4f4d\u7f6e\u306e\u8b58\u5225\u5b50\u306b\u3059\u308b\u65b9\u6cd5\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<code>#token=&lt;start-text&gt;,&lt;end-text&gt;<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e2d\u306estart-text\u304c\u3042\u308b\u884c\u306e\u6b21\u884c\u304b\u3089end-text\u304c\u3042\u308b\u884c\u306e\u524d\u884c\u307e\u3067\u304c\u7bc4\u56f2\u3068\u3057\u3066\u53d6\u308a\u51fa\u3055\u308c\u307e\u3059\u3002\u60f3\u5b9a\u3068\u3057\u3066\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u305f\u884c\u306bstart-text\u3001end-text\u3092\u66f8\u3044\u3066\u304a\u304f\u5f62\u306e\u3088\u3046\u306a\u306e\u3067\u3001\u3042\u307e\u308a\u30c8\u30ea\u30c3\u30ad\u30fc\u306a\u3053\u3068\u306f\u3057\u306a\u3044\u65b9\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002\u307b\u304b\u306b\u3082\u5e7e\u3064\u304b\u306e\u6a5f\u80fd\u304cDITA-OT\u306e\u30da\u30fc\u30b8\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u51e6\u7406\u7cfb\u4f9d\u5b58\u306e\u6a5f\u80fd\u3082\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u90fd\u5ea6\u78ba\u304b\u3081\u3066\u4f7f\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<figure><figcaption>coderef\u306estart,end\u7528\u6587\u5b57\u5217\u3092\u8ffd\u52a0\u3057\u305fXML<\/figcaption><pre><code>&lt;!-- example1start --&gt;\n&lt;fo:block&gt;&lt;fo:inline&gt;Title&lt;\/fo:inline&gt;&lt;\/fo:block&gt;\n!-- example1end --&gt;<\/code><\/pre>\n<\/figure>\n<p>\u307b\u304b\u3001coderef\u3068\u3044\u3046codeblock\u306e\u4e2d\u3067\u66f4\u306b\u5225\u306e\u30bf\u30b0\u3092\u4f7f\u3046\u3053\u3068\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001@href\u3067\u53c2\u7167\u3057\u305f\u7b87\u6240\u3068\u3001\u76f4\u63a5\u66f8\u304f\u7b87\u6240\u3092codeblock\u306e\u4e2d\u3067\u884c\u3048\u308b\u70b9\u3067\u3059\u3002<\/p>\n<figure><figcaption>coderef\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af<\/figcaption><pre><code>\n&lt;codeblock xml:space=\"preserve\">&lt;coderef href=\"hoge.xml#line-range(1,5)\" \/&gt;\n... &lt;!-- \u76f4\u63a5\u66f8\u3044\u305f\u90e8\u5206 --&gt;\n&lt;coderef href=\"hoge.xml#line-range(10,15)\" \/&gt;&lt;\/codeblock&gt;\n<\/code><\/pre>\n<\/figure>\n<p>1-5\u884c\u76ee\u3001\u300c&#8230;\u300d\u3092\u66f8\u3044\u306610-15\u884c\u76ee\u3001\u306a\u3093\u3066\u8868\u793a\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306acoderef\u3001DITA 2.0\u3067\u82e5\u5e72\u306e\u5909\u66f4\u304c\u5165\u308b\u3053\u3068\u304c\u73fe\u5728\u306e\u30c9\u30e9\u30d5\u30c8\u3067\u8a00\u53ca\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3068\u3044\u3063\u3066\u3082\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u304c\u30c8\u30d4\u30c3\u30af\u3092\u8a18\u8ff0\u3059\u308b\u4e0a\u3067\u306f\u305d\u3046\u5909\u5316\u306f\u306a\u304f\u3001\u4e3b\u306b\u4ed5\u69d8\u4e0a\u306e\u7acb\u3061\u4f4d\u7f6e\u304c\u3088\u308a\u6574\u7406\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<div>\n<a href=\"https:\/\/zoom.us\/webinar\/register\/7716474158164\/WN_2Me6Rwa-THuftdg7u6OEig\"><img decoding=\"async\" src=\"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-content\/uploads\/2022\/04\/f26f8cce-d240-4a75-9405-73171f0b5800-300x94.png\" \" alt=\"\u3061\u3087\u3063\u3068\u4e00\u606f\u30a2\u30f3\u30c6\u30ca\u30cf\u30a6\u30b9\u30a6\u30a7\u30d3\u30ca\u30fc\u300eDITA 2.0 \u3063\u3066\u3069\u3046\uff1f\n\u300a\u3084\u3063\u3071\u308a\u4e16\u754c\u6a19\u6e96\u4ed5\u69d8\u304c\u5b89\u5fc3!\u30d9\u30f3\u30c0\u30fc\u4e57\u308a\u63db\u3048\u3082\u30e9\u30af\u30e9\u30af\u300b\u300f\"\/><br \/>\n\u3061\u3087\u3063\u3068\u4e00\u606f\u30a2\u30f3\u30c6\u30ca\u30cf\u30a6\u30b9\u30a6\u30a7\u30d3\u30ca\u30fc\u300eDITA 2.0 \u3063\u3066\u3069\u3046\uff1f<br \/>\n\u300a\u3084\u3063\u3071\u308a\u4e16\u754c\u6a19\u6e96\u4ed5\u69d8\u304c\u5b89\u5fc3!\u30d9\u30f3\u30c0\u30fc\u4e57\u308a\u63db\u3048\u3082\u30e9\u30af\u30e9\u30af\u300b\u300f<br \/>\n2022\u5e744\u670826\u65e5\uff08\u706b\uff0916\uff1a00\uff5e16\uff1a30<br \/>\n<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>DITA\u3067\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u304d\u306fcodeblock\u8981\u7d20\u3092\u4f7f\u3044\u307e\u3059\u3002 \uff08HTML5\u3067\u306f\u5f15\u7528\u30d6\u30ed\u30c3\u30af\u3084codeblock\uff08pre\/code\uff09\u3082figure\u306e\u5b50\u5b6b\u3068\u3057\u3066\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5\u304c\u3088\u304f\u898b\u3089\u308c\u307e\u3059\u3002\u500b\u4eba\u7684\u306a\u611f\u899a\u3068\u3057\u3066\u3001\u82f1\u8a9e\u3060 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,16],"tags":[92,96,254],"class_list":["post-15371","post","type-post","status-publish","format-standard","hentry","category-xml-dita","category-structured-doc","tag-dita","tag-dita-ot","tag-xml"],"_links":{"self":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/15371","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=15371"}],"version-history":[{"count":0,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/posts\/15371\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/media?parent=15371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/categories?post=15371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.antenna.co.jp\/ILSoft2\/wp-json\/wp\/v2\/tags?post=15371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}