XMLスキーマ検証で質問です。
以下、AAAAA.xsdでimportされているGeneral.xsdからname:strのsimpleTypeを呼び出す箇所でエラーが出てしまいます。
正常に呼び出すためにはどうしたらよいでしょうか?
↓エラー内容(eclipseのコンソールに出力されていたエラーです)
src-resolve: Cannot resolve the name 'gen:str' to a(n) 'type definition'
AAAAA.xsd
<?xml version="1.0" encoding="UTF-8" ?> <xsd:schema targetNamespace="http://xml.e-tax.nta.go.jp/XSD/kyotsu" xmlns="http://xml.e-tax.nta.go.jp/XSD/kyotsu" xmlns:gen="http://xml.e-tax.nta.go.jp/XSD/general" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" > (中略) <!-- import --> <xsd:import namespace="http://xml.e-tax.nta.go.jp/XSD/general" gen:schemaLocation="../general/General.xsd"/>
General.xsd
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://xml.e-tax.nta.go.jp/XSD/general" xmlns="http://xml.e-tax.nta.go.jp/XSD/general" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0"> (中略) <xsd:simpleType name="str"> <xsd:restriction base="xsd:string"> <xsd:pattern value="(	|
|
|[\p{IsBasicLatin}-[\p{Cc}]]|\p{IsHiragana}|\p{IsKatakana}|\p{IsCJKUnifiedIdeographs}|\p{IsCJKCompatibilityIdeographs}|\p{IsCJKSymbolsandPunctuation}|[\p{IsHalfwidthandFullwidthForms}-[ヲ-゚]]|[\p{IsLatin-1Supplement}-[\p{Cc}…]]|\p{IsGreek}|\p{IsCyrillic}|\p{IsGeneralPunctuation}|\p{IsArrows}|\p{IsMathematicalOperators}|\p{IsBoxDrawing}|\p{IsGeometricShapes}|\p{IsNumberForms}|\p{IsEnclosedAlphanumerics}|\p{IsEnclosedCJKLettersandMonths}|\p{IsCJKCompatibility})*"/> </xsd:restriction> </xsd:simpleType> (以下省略)
あなたの回答
tips
プレビュー