質問編集履歴
2
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
XMLの妥当性検証のため、検証で使うスキーマ文書を読み込みたいと思っています。
|
4
4
|
|
5
5
|
ところが、xsdの読み込みに失敗とのエラーが出ており、解決策が見つからない状況です。
|
6
|
-
どうやら、以下ソースコード中のXXXXX.xsdの読み込みはOKなのですが、その中でimportされているYYYYY.xsd
|
6
|
+
どうやら、以下ソースコード中のXXXXX.xsdの読み込みはOKなのですが、その中でimportされているYYYYY.xsd,ZZZZZ.xsdの読み込みに失敗しているようです。
|
7
7
|
|
8
|
-
YYYYY.xsd
|
8
|
+
YYYYY.xsd,ZZZZZ.xsdの読み込みが正常に行われるためにはどうしたらよいでしょうか?
|
9
9
|
|
10
10
|
|
11
11
|
###発生している問題・エラーメッセージ
|
1
YYYYY.xsd, ZZZZZ.xsdを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -80,4 +80,67 @@
|
|
80
80
|
|
81
81
|
(以下略)
|
82
82
|
|
83
|
+
```
|
84
|
+
|
85
|
+
YYYYY.xsd
|
86
|
+
```
|
87
|
+
<?xml version="1.0" encoding="utf-8"?>
|
88
|
+
<schema xmlns="http://www.w3.org/2001/XMLSchema"
|
89
|
+
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
90
|
+
targetNamespace="http://www.w3.org/2000/09/xmldsig#"
|
91
|
+
version="1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
92
|
+
|
93
|
+
<simpleType name="CryptoBinary">
|
94
|
+
<restriction base="base64Binary">
|
95
|
+
</restriction>
|
96
|
+
</simpleType>
|
97
|
+
|
98
|
+
<element name="Signature" type="ds:SignatureType"/>
|
99
|
+
<complexType name="SignatureType">
|
100
|
+
<sequence>
|
101
|
+
<element ref="ds:SignedInfo"/>
|
102
|
+
<element ref="ds:SignatureValue"/>
|
103
|
+
<element ref="ds:KeyInfo" minOccurs="0"/>
|
104
|
+
<element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/>
|
105
|
+
</sequence>
|
106
|
+
<attribute name="Id" type="ID" use="required"/>
|
107
|
+
</complexType>
|
108
|
+
|
109
|
+
(以下略)
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
ZZZZZ.xsd
|
114
|
+
```
|
115
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
+
<xsd:schema targetNamespace="http://xml.e-tax.nta.go.jp/XSD/general"
|
117
|
+
xmlns="http://xml.e-tax.nta.go.jp/XSD/general"
|
118
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
119
|
+
elementFormDefault="qualified" attributeFormDefault="unqualified"
|
120
|
+
version="1.0">
|
121
|
+
|
122
|
+
<xsd:annotation>
|
123
|
+
<xsd:documentation>
|
124
|
+
共通ボキャブラリ
|
125
|
+
version:β2.1
|
126
|
+
Date:2017年01月13日
|
127
|
+
</xsd:documentation>
|
128
|
+
</xsd:annotation>
|
129
|
+
|
130
|
+
<!-- Include -->
|
131
|
+
<xsd:include schemaLocation="../general/zeimusho.xsd" />
|
132
|
+
<xsd:include schemaLocation="../general/zeimoku.xsd" />
|
133
|
+
<xsd:include schemaLocation="../general/ITreference.xsd" />
|
134
|
+
|
135
|
+
<!--General-->
|
136
|
+
<xsd:attributeGroup name="FormAttribute">
|
137
|
+
<xsd:attribute name="page" type="xsd:positiveInteger"/>
|
138
|
+
<xsd:attribute name="softNM" type="xsd:string" use="required"/>
|
139
|
+
<xsd:attribute name="sakuseiNM" type="xsd:string" use="required"/>
|
140
|
+
<xsd:attribute name="sakuseiDay" type="xsd:date" use="required"/>
|
141
|
+
<xsd:attribute name="id" type="xsd:ID"/>
|
142
|
+
</xsd:attributeGroup>
|
143
|
+
|
144
|
+
(以下略)
|
145
|
+
|
83
146
|
```
|