7
이 단지 형 선언 foo.xsd
에서 기존 XSD 스키마된다XSD 유형을 루트 스키마로 가져 오는 방법은 무엇입니까?
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
targetNamespace="foo">
<xs:import schemaLocation="foo.xsd" namespace="foo" />
<xs:element name="RootElement" type="alpha"/>
</xs:schema>
이것은 내가 SAX에서지고있어 무엇 :이 요소를 선언 다른 스키마입니다
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0"
targetNamespace="foo">
<xs:complexType name="alpha">
<!-- skipped -->
</xs:complexType>
</xs:schema>
자바 파서 :
"The namespace attribute 'foo' of an <import> element information
item must not be the same as the targetNamespace of the schema it exists in."
내가 뭘 잘못하고 있니?
고마워요, 이것이 제가 찾고 있던 것입니다! – yegor256
"tns"는 "targetNamespace"와 동일합니까? – Line