{"id":2211,"date":"2017-10-07T13:29:20","date_gmt":"2017-10-07T04:29:20","guid":{"rendered":"http:\/\/www.sambuichi.jp\/?p=2211"},"modified":"2019-10-12T09:19:27","modified_gmt":"2019-10-12T00:19:27","slug":"chinese-backgroundgb-t-24589-2","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=2211","title":{"rendered":"\u4e2d\u56fd\u306e\u76e3\u67fb\u30c7\u30fc\u30bf\u6a19\u6e96GB\/T 24589.2"},"content":{"rendered":"<p>Views: 55<\/p>\r\n<h2>GB\/T 24589.2\u20142010 XML Schema<\/h2>\r\n<p>Salami Slice design for tables in module<br>Russian Doll &amp; Venetian Blind design for fields in table<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"724\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-1-1024x724.png\" alt=\"\" class=\"wp-image-2212\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-1-1024x724.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-1-300x212.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-1-768x543.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-1.png 1422w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Nobu&#8217;s Comments&nbsp;on current pattern <\/h3>\r\n\r\n\r\n\r\n<ul>\r\n<li>It&#8217;s hard to understand the structure of table<\/li>\r\n<li>&lt;xs:element&gt; definition for field has no information about datatype. Requires checking type definition in corresponding type definition.<\/li>\r\n<li>Cannot validate field&#8217;s lexical representation<\/li>\r\n<li>prohibiting reuse of datatype result in poor maintainability of XML Schema<\/li>\r\n<li>No extension is considered<\/li>\r\n<li>No localization is considered<\/li>\r\n<\/ul>\r\n<p>We cam make this design more simple and flexible.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Revised Salami Slice design by Nobu <\/h3>\r\n\r\n\r\n\r\n<p>Nobu propose the Revised Salami Slice design for both tables and fields.<\/p>\r\n<p>This design introduces use of type definition for component items. You define all the elements and types in the global namespace and refer to the elements as required.<\/p>\r\n<p>See the following example.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"413\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-2-1024x413.png\" alt=\"\" class=\"wp-image-2215\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-2-1024x413.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-2-300x121.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-2-768x310.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-2.png 1425w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>Because it exposes all its elements and types globally, Revised Salami Slice, is completely reusable. However, because Garden of Eden exposes multiple elements as global ones, there are many potential root elements.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Step 1 define element for fields<br> \u2192&nbsp;  Improve visibility of field structure in table <\/h3>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"712\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-3-1024x712.png\" alt=\"\" class=\"wp-image-2216\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-3-1024x712.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-3-300x209.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-3-768x534.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-3.png 1425w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Step 2 general datatype for reuse<br> \u2192 Improve datatype visibility of field <\/h3>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"712\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-4-1024x712.png\" alt=\"\" class=\"wp-image-2217\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-4-1024x712.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-4-300x209.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-4-768x534.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-4.png 1425w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Step 3 &lt;substitutionGroup&gt; <\/h3>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"516\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-5-1024x516.png\" alt=\"\" class=\"wp-image-2218\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-5-1024x516.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-5-300x151.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-5-768x387.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-5.png 1504w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"> Evaluation <\/h3>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"562\" src=\"http:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-6-1024x562.png\" alt=\"\" class=\"wp-image-2219\" srcset=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-6-1024x562.png 1024w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-6-300x165.png 300w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-6-768x422.png 768w, https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2019\/10\/a-6.png 1493w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\r\n\r\n\r\n<h4>XML schema and instance documents<\/h4>\r\n<ul>\r\n<li><a href=\"\/wp-content\/uploads\/2019\/10\/ElementsInStandard.xsd\">ElementsInStandard.xsd<\/a><\/li>\r\n<li><a href=\"\/wp-content\/uploads\/2019\/10\/GeneralLedger.xsd\">GeneralLedger.xsd<\/a><\/li>\r\n<li><a href=\"\/wp-content\/uploads\/2019\/10\/ChineseLocalization.xsd\">ChineseLocalization.xsd<\/a><\/li>\r\n<li><a href=\"\/wp-content\/uploads\/2019\/10\/\u603b\u8d26.xml\">\u603b\u8d26.xml<\/a><\/li>\r\n<\/ul>\r\n<div class=\"index\" style=\"margin: auto; padding-left: 8px; border: solid 1px #d0d0d0;\">\r\n<div style=\"text-align: center;\">Contents<\/div>\r\n<div style=\"text-align: left;\"><a href=\"\/?p=2108\">XML schema design\u000bfor Audit Data Collection<\/a><\/div>\r\n<div><a href=\"\/?p=2221\">XML schema validation<\/a><\/div>\r\n<div><a href=\"\/?p=2227\">XML schema design patterns<\/a><\/div>\r\n<div><a href=\"\/?p=2211\">Chinese background\u000bGB\/T 24589.2<\/a><\/div>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Views: 55 Nobu&#8217;s Comments&nbsp;on current pattern Revised Salami Slice design by Nobu Step 1 define elem [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1111,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/2211"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2211"}],"version-history":[{"count":9,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/2211\/revisions"}],"predecessor-version":[{"id":2970,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/2211\/revisions\/2970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/1111"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}