{"id":4859,"date":"2022-01-12T09:25:57","date_gmt":"2022-01-12T00:25:57","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=4859"},"modified":"2022-01-12T15:18:14","modified_gmt":"2022-01-12T06:18:14","slug":"schematron","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=4859","title":{"rendered":"\u8ad6\u7406\u5b9a\u7fa9\u3068\u7269\u7406\u5b9a\u7fa9\u3092\u5206\u3051\u305f abstract Schematron\u30d5\u30a1\u30a4\u30eb\u69cb\u6210"},"content":{"rendered":"<p>Views: 85<\/p><p>\u4ee5\u4e0b\u3067\u7d39\u4ecb\u3057\u305fCEF\u306e\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u306f\u3001\u696d\u52d9\u306e\u5c02\u9580\u5bb6\u3068\u6280\u8853\u306e\u5c02\u9580\u5bb6\u306e\u5206\u62c5\u4f5c\u696d\u306b\u6700\u9069\u306a\u69cb\u6210\u3067\u3059\u3002<br \/>\n\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u306e\u6642\u306e\u691c\u8a3c\u5b9f\u65bd\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.sambuichi.jp\/?p=5533\">\u6b21\u306e\u8a18\u4e8b<\/a>\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr>\n<p>2021-05-21\u6295\u7a3f<\/p>\n<p>CEF\u306eGitHub <a href=\"https:\/\/github.com\/ConnectingEurope\/eInvoicing-EN16931\/releases\/tag\/validation-1.3.2\">EN16931 Validation artefacts v.1.3.2 <\/a>\u304b\u3089\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u95a2\u4fc2\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u3066\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<h2>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210<\/h2>\n<p>UBL 2.1\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u6b21\u306e\u69cb\u9020\u3067\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3002UBL\u306e\u30b9\u30ad\u30fc\u30de\u306f\u3001GitHub\u306b\u306f\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001OASIS\u304b\u3089\u5165\u624b\u3057\u306a\u3055\u3044\u3068\u306e\u6307\u793a\u304cschema\/README.md\u306b\u66f8\u3044\u3066\u3042\u308b\u3002<br \/>\nexample\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u96fb\u5b50\u30a4\u30f3\u30dc\u30a4\u30b9\u306e\u4f8b\u304c\u3044\u304f\u3064\u304b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\nSchematron\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u3068\u305d\u308c\u306b\u5bfe\u5fdc\u3057\u305fXSLT\u30d5\u30a1\u30a4\u30eb\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\nschematron\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u3001\u5143\u3068\u306a\u308bEN16931-UBL-validation.sch\u304b\u3089\u3001abstract\u5b9a\u7fa9\u3068\u305d\u308c\u3092uBL\u5bfe\u5fdc\u306b\u5c55\u958b\u3059\u308b\u305f\u3081\u306e\u5b9a\u7fa9\u3092\u8aad\u307f\u8fbc\u3080\u69cb\u6210\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"eInvoicing-EN16931-validation-1.3.2\/ubl\" >.\r\n\u251c\u2500\u2500 examples\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-creditnote1.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example1.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example1_Error.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example2.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example3.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example4.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example5.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example6.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example7.xml\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 ubl-tc434-example8.xml\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 ubl-tc434-example9.xml\r\n\u251c\u2500\u2500 schema\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 README.md\r\n\u251c\u2500\u2500 schematron\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 EN16931-UBL-validation.sch\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 UBL\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 EN16931-UBL-model.sch\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 EN16931-UBL-syntax.sch\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 abstract\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 EN16931-model.sch\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 EN16931-syntax.sch\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 codelist\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 EN16931-UBL-codes.sch\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 preprocessed\r\n\u2502\u00a0\u00a0     \u2514\u2500\u2500 EN16931-UBL-validation-preprocessed.sch\r\n\u2514\u2500\u2500 xslt\r\n    \u2514\u2500\u2500 EN16931-UBL-validation.xslt<\/pre>\n<h2>abstract\u5b9a\u7fa9<\/h2>\n<p>abstract\/EN16931-model.sch\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u90e8\u5206\u3092\u6b21\u306b\u793a\u3059\u3002<br \/>\n\u5148\u982d\u884c\u306e<br \/>\n <span class=\"lang:default decode:true  crayon-inline \" >&lt;pattern xmlns=&#8221;http:\/\/purl.oclc.org\/dsdl\/schematron&#8221; abstract=&#8221;true&#8221; id=&#8221;model&#8221;&gt;<\/span><br \/>\n\u3067\u306f\u3001abstract=&#8221;true&#8221;\u3068id=&#8221;model&#8221;\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\npattern\u8981\u7d20\u306f\u3001\u3044\u304f\u3064\u304b\u306erule\u8981\u7d20\u3092\u542b\u3093\u3067\u3044\u308b\u3002<br \/>\nrule\u8981\u7d20\u3067assert\u8981\u7d20\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6e80\u8db3\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u691c\u8a3c\u6761\u4ef6\u3092\u5ba3\u8a00\u3057\u3066\u3044\u308b\u3002<br \/>\nabstract\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u5177\u4f53\u7684\u306aXPath\u5ba3\u8a00\u3092\u542b\u3081\u306a\u3044\u3053\u3068\u3067\u3001\u691c\u8a3c\u30eb\u30fc\u30eb\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u3068\u540c\u6642\u306b\u3001UN\/CEFACT CII\u7b49\u3001\u7570\u306a\u308b\u6587\u6cd5\u306e\u6a19\u6e96\u30c7\u30fc\u30bf\u3067\u3082\u518d\u5229\u7528\u53ef\u80fd\u3068\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"width-set:true lang:xhtml decode:true \" title=\"abstract\/EN16931-model.sch\" >&lt;pattern xmlns=\"http:\/\/purl.oclc.org\/dsdl\/schematron\" abstract=\"true\" id=\"model\"&gt;\r\n\r\n  &lt;rule context=\"$Amount_due\"&gt;\r\n    &lt;assert test=\"$BR-CO-25\" flag=\"fatal\" id=\"BR-CO-25\"&gt;[BR-CO-25]-In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.&lt;\/assert&gt;\r\n  &lt;\/rule&gt;\r\n  &lt;rule context=\"$Buyer_electronic_address\"&gt;\r\n    &lt;assert test=\"$BR-63\" flag=\"fatal\" id=\"BR-63\"&gt;[BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier.    &lt;\/assert&gt;\r\n  &lt;\/rule&gt;\r\n\r\n...<\/pre>\n<h2>UBL\u5b9a\u7fa9<\/h2>\n<p>UBL\/EN16931-UBL-model.sch\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u90e8\u5206\u3092\u6b21\u306b\u793a\u3059\u3002<br \/>\npattern\u8981\u7d20\u306eid\u3092\u3001\u5c55\u958b\u6642\u306epattern\u8981\u7d20\u306eis-a\u5c5e\u6027\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u7f6e\u304d\u63db\u3048\u5bfe\u8c61\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\nassert\u8981\u7d20\u3067\u6307\u5b9a\u3057\u3066\u3044\u308btest=&#8221;$BR-CO-25&#8243; flag=&#8221;fatal&#8221; id=&#8221;BR-CO-25&#8243;\u306e\u5185\u5bb9\u306f\u3001\u7f6e\u304d\u63db\u3048\u6642\u306bparam\u8981\u7d20\u306ename\u5c5e\u6027\u3067\u3001BR-CO-25\u3092\u6307\u5b9a\u3057\u3001\u7f6e\u304d\u63db\u3048\u308b\u5185\u5bb9\u3092value\u5c5e\u6027\u306bXPath\u3092\u6307\u5b9a\u3057\u3066\u6e80\u8db3\u3059\u3079\u304d\u6761\u4ef6\u3092\u95a2\u6570\u5b9a\u7fa9\u3057\u3066\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"width-set:true lang:xhtml decode:true \" title=\"UBL\/EN16931-UBL-model.sch\" >&lt;pattern xmlns=\"http:\/\/purl.oclc.org\/dsdl\/schematron\" is-a=\"model\" id=\"UBL-model\"&gt;\r\n\r\n  &lt;param name=\"Amount_due\" value=\"\/ubl:Invoice\/cac:LegalMonetaryTotal\/cbc:PayableAmount \"\/&gt;\r\n  &lt;param name=\"BR-CO-25\" value=\"((. &amp;gt; 0) and (exists(\/\/cbc:DueDate) or exists(\/\/cac:PaymentTerms\/cbc:Note))) or (. &amp;lt;= 0)\"\/&gt;\r\n\r\n  &lt;param name=\"Buyer_electronic_address\" value=\"cac:AccountingCustomerParty\/cac:Party\/cbc:EndpointID\"\/&gt;\r\n  &lt;param name=\"BR-63\" value=\"exists(@schemeID)\"\/&gt;\r\n\r\n...<\/pre>\n<h2>preprocessed\u5c55\u958b\u7d50\u679c<\/h2>\n<p>preprocessed\/EN16931-UBL-validation-preprocessed.sch\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u90e8\u5206\u3092\u6b21\u306b\u793a\u3059\u3002<br \/>\nabstract\u30d5\u30a1\u30a4\u30eb\u306bUBL\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306eparam\u5b9a\u7fa9\u3092\u4ee3\u5165\u3057\u305f\u7d50\u679c\u3092\u6b21\u306b\u793a\u3059\u3002<br \/>\n\u62bd\u8c61\u5b9a\u7fa9\u3068\u5177\u4f53\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u7b87\u6240\u306eXPath\u5b9a\u7fa9\u3092\u5206\u5272\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u660e\u5feb\u306a\u5b9a\u7fa9\u5185\u5bb9\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"width-set:true lang:xhtml decode:true \" title=\"preprocessed\/EN16931-UBL-validation-preprocessed.sch\" >...\r\n  &lt;pattern id=\"UBL-model\"&gt;\r\n...\r\n    &lt;rule context=\"\/ubl:Invoice\/cac:LegalMonetaryTotal\/cbc:PayableAmount\"&gt;\r\n      &lt;assert id=\"BR-CO-25\" flag=\"fatal\" test=\"((. &gt; 0) and (exists(\/\/cbc:DueDate) or exists(\/\/cac:PaymentTerms\/cbc:Note))) or (. &amp;lt;= 0)\"&gt;[BR-CO-25]-In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.&lt;\/assert&gt;\r\n    &lt;\/rule&gt;\r\n ...\r\n    &lt;rule context=\"cac:AccountingCustomerParty\/cac:Party\/cbc:EndpointID\"&gt;\r\n      &lt;assert id=\"BR-63\" flag=\"fatal\" test=\"exists(@schemeID)\"&gt;[BR-63]-The Buyer electronic address (BT-49) shall have a Scheme identifier.    &lt;\/assert&gt;\r\n    &lt;\/rule&gt;\r\n...<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Views: 85\u4ee5\u4e0b\u3067\u7d39\u4ecb\u3057\u305fCEF\u306e\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u306f\u3001\u696d\u52d9\u306e\u5c02\u9580\u5bb6\u3068\u6280\u8853\u306e\u5c02\u9580\u5bb6\u306e\u5206\u62c5\u4f5c\u696d\u306b\u6700\u9069\u306a\u69cb\u6210\u3067\u3059\u3002 \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u306e\u6642\u306e\u691c\u8a3c\u5b9f\u65bd\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002 2021-05-21\u6295\u7a3f CEF\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4868,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[49],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/4859"}],"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=4859"}],"version-history":[{"count":14,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/4859\/revisions"}],"predecessor-version":[{"id":5675,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/4859\/revisions\/5675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/4868"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}