XML Editor"

From Documentation
m (Created page with "{{ZKInstallationGuidePageHeader}} If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and '''Content Assist''' w...")
 
Line 6: Line 6:
 
<zk
 
<zk
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.zkoss.org/2005/zul/zul.xsd">
+
  xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
 
...
 
...
 
</zk>
 
</zk>

Revision as of 02:50, 7 December 2012


If you are using a XML editor, you could specify the schema directly in your ZUL document, such that the validation and Content Assist will be enabled automatically. Here is an example.

<zk
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
...
</zk>

Notice that you have to specify the schema location in the root element, and the root element could be any valid ZUL component, such as window.

Version History

Last Update : 2012/12/07


Version Date Content
     



Last Update : 2012/12/07

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.