xHTML 마크 업과 함께 내 자신의 XML 마크 업을 사용하려고합니다. 이 같은 아마 뭔가 : 나는 (단순) 예를 발견새 마크 업으로 xHTML 스키마를 재정의하는 방법
<my:root xmlns:my="myXSD.xsd" xmlns="http://www.w3.org/1999/xhtml">
<html my:name="myName">
</html>
</my:root>
: http://www.w3schools.com/schema/el_redefine.asp
그러나 예 local
파일을 사용합니다. 이미 정의 된 xHTML을 사용하고 싶습니다. 그래서 나는이에 대한 간단한 예제를 변경 :
"SCHEMALOCATION를 해결할 수없는"
파일을 (내가이 클릭하면 난에 이동) :
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:redefine schemaLocation="http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd">
</xs:redefine>
</xs:schema>
그런 다음 내가 여러 오류의 발생합니다 : xhtml1-strict.xsd
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
왜이 오류가 발생합니까? 그리고 내가 왜 goto : "http://www.w3.org/2001/xml.xsd"HTML과 XSD 파일을 볼 수 있습니까?
인터넷에서이 주제에 관한 좋은 예가 있습니까? 사전에
고맙습니다 ...