2011-11-20 38 views
1

我有這樣的代碼,其中dokument是我的主要元素。我有我自己的命名空間:XMLNS =「http://wlasna_przestrzen.nazw.pl」 我想用另一隻命名空間通過HTML沒有爲文檔檢測到文法約束(DTD或XML模式)

<dokument 
xmlns="http://wlasna_przestrzen.nazw.pl" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://wlasna_przestrzen.nazw.pl/ albumy.xsd" 
xmlns:JĘZYK_HTML="http://www.w3.org/1999/xhtml" 
> 

我有一個包含文件XSD把屏幕:

<xsd:schema 
xmlns:nasza_przestrzeń="http://wlasna_przestrzen.nazw.pl" 
targetNamespace="http://wlasna_przestrzen.nazw.pl" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:html="http://www.w3.org/1999/xhtml" 
elementFormDefault="qualified" 
attributeFormDefault="unqualified" > 

我的問題是,爲什麼我有這樣的錯誤:

的文檔沒有檢測到語法約束(DTD或XML模式)。

回答

4

轉到window -> Preferences , then XML -> XML Files -> Validation然後設置

Indicate when no grammar is specifiedignore

+0

感謝那個隊友,爲我工作 – craigk

相關問題